Returns a color specification in the hue-saturation-value model.
color
make-hsv hue saturation value &optional alpha => color-spec
hue⇩ |
A hue component. |
saturation⇩ |
A saturation component. |
value⇩ |
A value component. |
alpha⇩ |
A number between 0 and 1, or nil . |
color-spec |
A color specification. |
The function make-hsv
return a color-spec in the :hsv
model with components hue, saturation and value.
Note that short-floats are used for each component; this results in the most efficient color conversion process. However, any floating-point number type can be used.
alpha indicates the alpha value of the color. 0 means it is transparent, 1 means it is solid. If alpha is nil
or not specified then the color does not have an alpha component and it is assumed to be solid.
CL-USER 27 > (color:make-hsv 1.2s0 0.5s0 0.9s0) #(:HSV 1.2S0 0.5S0 0.9S0)
make-rgb
make-gray
color-model
color-blue
color-level
color-alpha
15.1 Color specs
CAPI User Guide and Reference Manual (Windows version) - 01 Dec 2021 19:34:21