Add screenshot and document the command language.
Chris Pressey
2 years ago
0 | 0 | Erratic Turtle Graphics |
1 | 1 | ======================= |
2 | 2 | |
3 |  | |
3 |  | |
4 | 4 | |
5 | A gewgaw that I prototyped in 2018 sometime I think. I don't | |
6 | remember when I had the original idea, but I think it was not | |
7 | long before that. | |
5 | This is a gewgaw that I prototyped sometime in (I believe) 2018. | |
6 | I don't remember when I had the original idea, but I think it was | |
7 | not long before that. | |
8 | 8 | |
9 | 9 | And that idea is: turtle graphics, except there's a small |
10 | 10 | margin of error. You might ask for "Turn right 90 degrees" |
12 | 12 | |
13 | 13 | If you use a faint pen, and repeat the drawing instructions |
14 | 14 | many times over, you get a nice pencilly noisy effect. |
15 | ||
16 | In late 2019 I added a rudimentary command language similar to | |
17 | Logo, for user-created designs. The commands are: | |
18 | ||
19 | fd NUM move forward this many pixels | |
20 | rt NUM rotate right this many degrees | |
21 | lt NUM rotate left this many degrees | |
22 | setxyr NUM NUM set the coordinates, as a percentage of the | |
23 | width and height of the canvas | |
24 | shiftxyr NUM NUM adjust the coordinates, as a percentage of the | |
25 | width and height of the canvas | |
26 | seterr NUM NUM set the error rate for rotations and | |
27 | movements respectively | |
28 | shifterr NUM NUM adjust the error rate for rotations and | |
29 | movements respectively |
Binary diff not shown