TinyDraw

From CodeStuff
Jump to: navigation, search

TinyDraw is a simple drawing program that uses the arrow keys.


Individual keyboard keys are identified by keycodes.

The variable cx is changed when the left and right arrow keys are held down.

The variable cy is changed when the up and down arrow keys are held down.

A filled circle is drawn on the screen at the position cx,cy