### create-turtles
crt
create-<breeds>

#### create-turtles number
create-turtles number [ commands ]
create-<breeds> number
create-<breeds> number [ commands ]

Creates number new turtles at the origin. 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. 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

See also hatch, sprout.

Take me to the full NetLogo Dictionary