Simple graphics language

From ScienceZero
Revision as of 15:54, 14 April 2011 by Bjoern (Talk | contribs)

Jump to: navigation, search

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      ( x y -- )
readpixel     ( x y -- colour )
colour        (colour -- )
goto          (x y -- )
loops
conditionals
penup         ( -- )
pendown       ( -- )