HSB function
HSB(Hue,
Saturation, Brightness) HSB(Hue;
Saturation; Brightness)
Hue
Number or { Number }
The hue. Must be between 0 and 360 (inclusive).
Saturation
Number or { Number }
The saturation. Must be between 0 and 100 (inclusive).
Brightness
Number or { Number }
The brightness. Must be between 0 and 100 (inclusive).
Returns
Color or { Color }
A color based on the given color components.
Returns a color based on the given color components according to the Hue-Saturation-Brightness (HSB) color model, also known as the Hue-Saturation-Value (HSV) color model.
This function is Calcapp-specific.
Examples
HSB(0, 100,
100)HSB(0; 100;
100)
Returns a color corresponding to Color.RedColor,Red.
HSB(0, 100, { 100,
0 })HSB(0; 100;
{ 100; 0 })
Returns the array { Color.Red, Color.Black }{ Color,Red; Color,Black }. When the third parameter, the brightness, is set to 0, the returned color is always black.