The next two examples are from Maximilian Zollbrecht:
COLOR 1 0 0; VAR corners=4, size=100, angle=360/corners+0.5; WHILE size>0 BEGIN GO size; TURN angle; size = size-0.5; END |
COLOR 0 1 0; VAR corners=6, size=200, angle=360/corners+0.5; WHILE size>0 BEGIN GO size; TURN angle; size = size-0.5; END |
The next two examples are from Leo Balduf:
Some more recursive examples.