NetLogo 7.0.0-beta2:

palette:scale-gradient-hsb

palette:scale-gradient-hsb rgb-color-list number range1 range2

Reports an RGB color equivalent to a color in HSB space proportional to number using a gradient generated with hsb-list. The hsb-list is a list containing three-element lists of HSB colors: [[h1 s1 b1] [h2 s2 b2] [h3 s3 b3] …].

When range1 is less than or equal to range2, the HSB color will be directly mapped to gradient HSB colors. When range2 is less than range1, the color gradient is inverted.

Let min-range be the minimum of range1 and range2. If number is less than or equal to min-range, then the result is the same as if number was equal to min-range.

Let max-range be the maximum of range1 and range2. If number is greater than max-range, then the result is the same as if number was equal to max-range.

Example:

ask patches
[
ask patches [set pcolor palette:scale-gradient-hsb [[200 50 50] [100 60 70]] pxcor min-pxcor max-pxcor]
]

;; colors each patch with a color proportional to the gradient

Take me to the full Palette Extension Dictionary