NetLogo banner

 Home
 Download
 Help
 Resources
 Extensions
 FAQ
 NetLogo Publications
 Contact Us
 Donate

 Models:
 Library
 Community
 Modeling Commons

 User Manuals:
 Web
 Printable
 Chinese
 Czech
 Farsi / Persian
 Japanese
 Spanish

  Donate

NetLogo Models Library:
Code Examples

(back to the library)

Scale-color Example

[screen shot]

If you download the NetLogo application, this model is included. You can also Try running it in NetLogo Web

WHAT IS IT?

This code example demonstrates the scale-color reporter. As a turtle's x-coordinate becomes larger, the turtle acquires a brighter color. Similarly, as a turtle's x coordinate becomes smaller, the turtle acquires a darker shade. The center of the world is (0, 0).

THINGS TO NOTICE

The tails of the turtles on the right edge of the world are visible on the left edge of the view.

(back to the NetLogo Models Library)