Using scale-color primitive for a specific range of color values

Hi,

I am new to NetLogo, but am curious about how to use the scale-color primitive to generate clusters of patches that form a gradient of colors. Specifically, I would like to use scale-color to set patches in a cluster to varying shades of orange. I have tried to accomplish this but it seems that the darkest color is always set to an almost black shade, which is visually not what I am trying to create. I would love to be able to set the high and low parameters of the color scale, and then possibly even set the increment by which the shades change. If this is not possible with the scale-color primitive, any ideas on how to create this effect in a different fashion would be very much appreciated. Thanks!

Perhaps you could try the palette extension. I made the following simple code for testing the extension:

I obtained the following output:

1 Like

Thank you so much for this! This appears to solve my issue.

1 Like

Using the pallette extension is great. If you want to do it with just scale-color, you can probably play around with range1 and range2 so that edges of the ranges don’t show up as black and white. Looking at the NetLogo Colors, you can see that darkest version of each color is black and the lightest version is white. If you set the range to be wider than the actual range of numbers that are getting input, then nothing will get colored black or white.