left

 

left is primitive that tells a turtle to turn a certain number of degrees (between 0 and 360) to the left.

ask turtles [
    left 90
]

Things to keep in mind when using left:

The model example below demonstrates how the left, and its sibling right, primitives work. We have 12 dots representing the 12 hours on the clock and an arrow representing the hour. When we click spin-left, our arrow turns left 1 degree at each tick until it completes the specified number of degrees on the slider.

 

Try it Yourself

 
 
 
 
 
 
 

What's next?

Once you mastered the left primitive, don't stop there. Check out the resources below to improve your NetLogo skills.

 
Published NetLogo models that use the left primitive:
 
 
Similar primitives:
right

Changes a turtle's heading a certain amount of degrees to the right.

Read more
set

Changes the value of a variable (global, local, or agent-owned).

Read more
face

Changes a turtle's heading towards another turtle or patch.

Read more
forward

Makes a turtle move in any number of units on a straight path.

Read more
 
Learn another primitive: