|
the formwriter language
| syntax: |
to setcolor (r, g, b) ; procedure setcolor takes 3 arguments.
red (r) ; sets turtle ink color.
green (g)
blue (b)
list ( r, g, b) ; the last expression in the procedure is returned.
end
|
control structures |
- iteration: repeat (i,100, ( DrawBox (i) ) )
- conditional: if (i < 10 ) then Rib(12)
|
|