ColorBar: A Color Bar Plot for NetLogo 🎨

Hi everyone!

I’m excited to share my new NetLogo project: ColorBar.

ColorBar is a NetLogo model demonstrating how to create a simple color bar plot. Since NetLogo does not include a built-in color bar widget, this model provides a workaround by drawing one using temporary plot pens.

A NetLogo extension may be developed in the future to simplify color bar creation. For now, this model serves as a practical example.

NetLogo Web

Click here to see this model online on NetLogo Web!

How It Works

The color bar can be drawn in any plot using the plot-color-bar procedure. This procedure takes the plot name as an argument and creates a random color bar with 10 different colors. The implementation can be adapted to fulfill specific requirements.

For another color bar implementation in NetLogo, see the LogoClim model.

Learn more at: GitHub - danielvartan/colorbar: 🎨 A Color Bar Plot for NetLogo

GitHub Stars are always appreciated! :star:

Cheers,

Daniel Vartanian

1 Like