Random Koch Curve

Random Koch Curve preview image

1 collaborator

Default-person Miloš Adamović (Author)

Tags

fractals 

Tagged by Miloš Adamović about 9 years ago

koch curve 

Tagged by Miloš Adamović about 9 years ago

random 

Tagged by Miloš Adamović about 9 years ago

Visible to everyone | Changeable by the author
Model was written in NetLogo 5.2.0 • Viewed 413 times • Downloaded 30 times • Run 0 times
Download the 'Random Koch Curve' modelDownload this modelEmbed this model

Do you have questions or comments about this model? Ask them here! (You'll first need to log in.)


Info tab cannot be displayed because of an encoding error

Comments and Questions

Please start the discussion about this model! (You'll first need to log in.)

Click to Run Model

to setup
  clear-all
  set-default-shape turtles "line half"
  create-turtles 1
    [ set heading 90  
      setxy 16 0             
      set color blue
      set size world-width * 2 ]
  reset-ticks
end 

to step
  ask turtles[
   if-else ((random 2) = 0)[iterateone][iteratetwo]
   die
   ]
  tick
end 

to iterateone
  set size size / 3
  hatch 1
  forward size / 2
  lt 60
  hatch 1
  forward size / 2
  rt 120
  hatch 1
  forward size / 2
  lt 60
  hatch 1
end 

to iteratetwo
  set size size / 3
  hatch 1
  forward size / 2 
  rt 60
  hatch 1
  forward size / 2
  lt 120
  hatch 1
  forward size / 2
  rt 60
  hatch 1
end 

There is only one version of this model, created about 9 years ago by Miloš Adamović.

Attached files

File Type Description Last updated
Random Koch Curve.png preview Preview for 'Random Koch Curve' about 9 years ago, by Miloš Adamović Download

This model does not have any ancestors.

This model does not have any descendants.