NetLogo Help: wrap-color

### wrap-color1.0

#### wrap-color number

wrap-color checks whether number is in the NetLogo color range of 0 to 140 (not including 140 itself). If it is not, wrap-color "wraps" the numeric input to the 0 to 140 range.

The wrapping is done by repeatedly adding or subtracting 140 from the given number until it is in the 0 to 140 range. (This is the same wrapping that is done automatically if you assign an out-of-range number to the color turtle variable or pcolor patch variable.)

    show wrap-color 150
    => 10
    show wrap-color -10
    => 130

Take me to the full NetLogo Dictionary