Please do not copy paste full script, just use it for understanding the basic work principals
The mooving square.
Simple image drowing.
Grayscaling the image data.
Bresenham's line algorithm.
Sobel filter for image edge detection.
Cyrus-beck line clipping algorithm.
Seed fill algorithm.
Line fill algorithm.
Obj drawing
Life game