Creates number new turtles . New turtles have random integer headings and the color is randomly selected from the 14 primary colors.
If the create-<breeds> form is used, the new turtles are created as members of the given breed.
If commands are supplied, the new turtles immediately run them commands. This is useful for giving the new turtles a different color, heading, or whatever. (The new turtles are created all at once then run one at a time, in random order.)
crt 100 [ fd 10 ] ;; makes a randomly spaced circle
breed [canaries canary] breed [snakes snake] to setup clear-all create-canaries 50 [ set color yellow ] create-snakes 50 [ set color green ] end
Note: While the commands are running, no other agents are allowed to run any code (as with the without-interruption command). This ensures that if ask-concurrent is being used, the new turtles cannot interact with any other agents until they are fully initialized.
Take me to the full NetLogo Dictionary