NetLogo banner

Home
Download
Help
Resources
Extensions
FAQ
NetLogo Publications
Contact Us
Donate

Models:
Library
Community
Modeling Commons

Beginners Interactive NetLogo Dictionary (BIND)
NetLogo Dictionary

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

  Donate

NetLogo Models Library:
Code Examples/Extensions Examples/palette

(back to the library)

Palette Example

[screen shot]

Note: If you download the NetLogo application, every model in the Models Library is included.

WHAT IS IT?

This model demonstrates basic usage of the palette extension.

HOW TO USE IT

Click SETUP then select the setting you want displayed with the chooser.

HOW IT WORKS

The model assigns fractional values from 0 to 10 to patches, from bottom to top, left to right. The values are displayed, rounded, as patch labels. The model demonstrates various ways of using the palette extension to assign colors to patches according to these values.

NETLOGO FEATURES

The palette:scale-scheme, palette:scale-gradient, palette:scale-gradient-hsb, and palette:scheme-colors primitives of the palette extension are used here.

See the documentation for the extension for more details.

CREDITS AND REFERENCES

ColorBrewer: https://colorbrewer2.org/

(back to the NetLogo Models Library)