Cookies UI

We use a selection of our own and third-party cookies on the pages of this website: Essential cookies, which are required in order to use the website; functional cookies, which provide better easy of use when using the website; performance cookies, which we use to generate aggregated data on website use and statistics; and marketing cookies, which are used to display relevant content and advertising. If you choose "ACCEPT ALL", you consent to the use of all cookies. You can accept and reject individual cookie types and revoke your consent for the future at any time at "Settings".

Losing My Way

Date
December, 2008
Medium

Experiments with the children's programming language "logo" resulted in these allegorical programs where the turtle (the drawing agent in logo) takes an anxious journey.


cs
ht
make "radius  300
make "JourneyLength 50000
make "step :JourneyLength
make "stride 2
make "adventurousness 3
make "anxiety 50

repeat :step [
	make "lostness ((random 2 * :JourneyLength) 
        - :JourneyLength) / ((:step/:adventurousness + 
        :JourneyLength/:anxiety) )
	left :lostness
  	fd :stride
	if xpos * xpos + ypos * ypos > 
        :radius * :radius [right 180] []
	make "step :step - 1
]