base RGB color
number of hues to select from the spectrum of hues, nonnegative integer
an array of exactly all the distinct RGB colors converted (and rounded, half up)* from HSL colors that have:
color
,color
* Note: this spec was corrected, along with the spec of hslToRgb
Produce a palette of RGB colors that have the same saturation and lightness as the input and evenly divide the spectrum of hues using the HSL representation of RGB. All input and output colors are [r,g,b] tuples of integers 0 <= r,g,b <= 255. See https://en.wikipedia.org/wiki/HSL_and_HSV for an explanation of HSL and its relationship to RGB.
For example, a palette generated from pure green (which has hue=120°, saturation=100%, lightness=50%) and n=4 would have: a bright orange (hue=30°), pure green, a dodger blue (210°), and fuchsia (300°).