Difference between revisions of "TinyDraw"
From CodeStuff
(Created page with "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 righ...") |
|||
| Line 14: | Line 14: | ||
print("Draw with the arrow keys"); | print("Draw with the arrow keys"); | ||
| − | + | let cx=320; | |
| − | + | let cy=240; | |
Latest revision as of 06:52, 22 April 2019
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