Turtles Circling

Turtles Circling preview image

1 collaborator

Uri_dolphin3 Uri Wilensky (Author)

Tags

(This model has yet to be categorized with any tags)
Model group CCL | Visible to everyone | Changeable by group members (CCL)
Model was written in NetLogo 5.0.4 • Viewed 143 times • Downloaded 17 times • Run 0 times
Download the 'Turtles Circling' 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
  setup-circle radius number
  setup-plots
end 

to setup-circle [r n]
  clear-all
  set-default-shape turtles "circle"
  ;; turtles should be evenly spaced around the circle
  create-ordered-turtles n [
    set size 2  ;; easier to see
    fd r
    rt 90
  ]
end 

to all-circle
  circle radius
  display
end 

to circle [r]
  ask turtles [ move-along-circle r ]
  if plot? [ update-plots ]
end 

to move-along-circle [r]
  fd (pi * r / 180) * (speed / 50)
  rt speed / 50
end 

to zero-circle
  ask turtle 0
    [ pen-down
      move-along-circle radius ]
  display
end 

to draw-circle
  clear-drawing
  create-turtles 1
    [ set color gray - 3
      set size 2 * draw-radius
      set shape "circle"
      stamp
      die ]
end 


; Copyright 1997 Uri Wilensky.
; See Info tab for full copyright and license.

There are 10 versions of this model.

Uploaded by When Description Download
Uri Wilensky over 9 years ago Updated to NetLogo 5.0.4 Download this version
Uri Wilensky almost 10 years ago Updated version tag Download this version
Uri Wilensky almost 10 years ago Updated to version from NetLogo 5.0.3 distribution Download this version
Uri Wilensky over 10 years ago Updated to NetLogo 5.0 Download this version
Uri Wilensky over 12 years ago Updated from NetLogo 4.1 Download this version
Uri Wilensky over 12 years ago Updated from NetLogo 4.1 Download this version
Uri Wilensky over 12 years ago Updated from NetLogo 4.1 Download this version
Uri Wilensky over 12 years ago Updated from NetLogo 4.1 Download this version
Uri Wilensky over 12 years ago Model from NetLogo distribution Download this version
Uri Wilensky over 12 years ago Turtles Circling Download this version

Attached files

File Type Description Last updated
Turtles Circling.png preview Preview for 'Turtles Circling' over 9 years ago, by Uri Wilensky Download

This model does not have any ancestors.

This model does not have any descendants.