Simple turtle graphics: Difference between revisions
Content added Content deleted
m (J: leave the turtle visible) |
m (J: put back "cleanup code" to restore turtle to initial state (technically right 90 would suffice in place of left 270)) |
||
Line 341: | Line 341: | ||
left 90 |
left 90 |
||
pen 1 [ penColor Blue |
pen 1 [ penColor Blue |
||
barchart 0.5 0.3333 2 1.3 0.5; 200 |
barchart 0.5 0.3333 2 1.3 0.5; 200 |
||
pen 0 |
|||
left 90 |
|||
forward 10 |
|||
left 270 |
|||
pen 1</lang> |
|||
Opens a window with the indicated content. House is red, barchart is blue. |
Opens a window with the indicated content. House is red, barchart is blue. |