Tree, Bird, Grass
A flat Logo turtle picture: a green tree with a brown trunk, black birds in a pink sky, and a band of green grass.
The Logo program
The original image file did not keep its program, so this Logo program redraws the piece for the turtle on my home page.
; Tree, Bird, Grass
TO CIRCLE :R
REPEAT 36 [FD :R * 0.1745 RT 10]
END
TO DISC :X :Y :R
IF :R < 1 [STOP]
PU SETXY :X - :R :Y SETH 0 PD CIRCLE :R
DISC :X :Y :R - 5
END
TO BIRD :X :Y :S
PU SETXY :X :Y SETH 0 PD
REPEAT 2 [REPEAT 18 [FD :S RT 10] LT 180]
END
CS SETBG [255 94 126]
PU SETXY -200 -158 SETH 90 SETPC [70 150 10] SETPW 6 PD
REPEAT 10 [FD 400 LT 90 FD 5 LT 90 FD 400 RT 90 FD 5 RT 90]
PU SETXY 6 -112 SETH 0 SETPC [110 32 10] SETPW 22 PD FD 160
SETPC [0 140 0] SETPW 6
DISC 6 78 52
DISC -36 52 38
DISC 46 54 38
SETPC "black SETPW 2
BIRD -170 34 1.4
BIRD -140 2 1.4
BIRD -120 62 1.2
BIRD 120 20 1.4
BIRD 156 54 1.2
BIRD -12 92 1.2
BIRD 22 64 1.2
HT
Run it opens the live turtle on my home page with this program loaded. The Logo turtle comes from Seymour Papert's lab at MIT.
How to make it
- Clear the screen and set a pink sky with SETBG. Then lay down the grass by driving the turtle back and forth inside a REPEAT.
- Lift the pen, move to the bottom of the tree with SETXY, and draw the trunk with a thick brown pen.
- Teach the turtle DISC, a procedure that draws a circle and then calls itself with a smaller radius until it reaches zero. Three DISC calls make a leafy crown.
- Teach the turtle BIRD: two small arcs that meet in the middle, like a flying gull.
- Call BIRD at different spots and sizes to scatter a flock across the sky, then hide the turtle with HT.