git @ Cat's Eye Technologies Erratic-Turtle-Graphics / 17d55f3
Add screenshot and document the command language. Chris Pressey 2 years ago
2 changed file(s) with 19 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
00 Erratic Turtle Graphics
11 =======================
22
3 ![screenshot](images/erratic-circles.png?raw=true)
3 ![screenshot](images/chain1.png?raw=true)
44
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.
88
99 And that idea is: turtle graphics, except there's a small
1010 margin of error. You might ask for "Turn right 90 degrees"
1212
1313 If you use a faint pen, and repeat the drawing instructions
1414 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