Load this into the upper window of DrScheme. Click on the "Run" ("Execute" in Windows) button, upper right. In the lower window (or add these as commands in your program) (squarespiral 100) (clear) (squarespiralRec 100 2)
Run with the function "constantAngleSpiral" with parameters 121 and 4: (turtles) (begin (turn -90) (move 100) (turn 90) (constantAngleSpiral 121 4)) ;; put these lines in your program
First try running the function "constantDistance" from the file above using the parameters 100 40 5 23: (turtles) (begin (turn -90) (move 100) (turn 90) (constantDistance 100 40 5 23))Build this spiral out of squares to get this picture:
(turn -90) (move 100) (turn 90) (spiralsquares 100 40 5 23)