All Manuals > CAPI User Guide and Reference Manual > 24 COLOR Reference Entries

NextPrevUpTopContentsIndex

make-hsv

Function
Summary

Returns a color specification in the hue-saturation-value model.

Package

color

Signature

make-hsv hue saturation value &optional alpha => color-spec

Arguments

hue

A hue component.

saturation

A saturation component.

value

A value component.

alpha

A number between 0 and 1, or nil.

Values

color-spec

A color specification.

Description

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.

Example
COLOR 27 > (color:make-hsv 1.2s0 0.5s0 0.9s0)
#(:HSV 1.2S0 0.5S0 0.9S0)
See also

make-rgb
make-gray
color-model
color-blue
color-level
color-alpha
Color specs


CAPI User Guide and Reference Manual (Unix version) - 25 Feb 2015

NextPrevUpTopContentsIndex