Difference between revisions of "Simple graphics language"
From ScienceZero
Line 5: | Line 5: | ||
Sample code: | Sample code: | ||
360 for 1 forward 1 right next | 360 for 1 forward 1 right next | ||
+ | |||
+ | Commands: | ||
+ | setpixel | ||
+ | readpixel | ||
+ | colour | ||
+ | goto (x y -- ) | ||
+ | loops | ||
+ | conditionals | ||
+ | penup | ||
+ | pendown |
Revision as of 15:43, 14 April 2011
A simple graphics language for microcontrollers
We start with a very simple reverse polish notation interpreter with a preprocessor stage
Sample code:
360 for 1 forward 1 right next
Commands:
setpixel readpixel colour goto (x y -- ) loops conditionals penup pendown