Our rend language consists of:
- variable declarations
- loop settings
- statements
Variables are single characters. They are defined as x=(expressions)
. Multiple varibles can be defined with a comma seperating them.
x=100,y=0;
Next you define how often you want to paint. 300ms:
Statements end with a semicolon.
Set the paint color with #websafecolor
, for example #orange;
Use the r
method for drawing rectangles.
r x y w h
where x y w h are expressions.
Use the l
method for drawing rectangles.
r ax ay bx by
where ax ay bx by are expressions.