Converts a color specification to a given model.
color
ensure-model-color color-spec model => result
| color-spec⇩ | 
A color specification. | 
| model⇩ | 
A color-model ( :rgb,:hsvor:gray). | 
| result⇩ | 
A color specification. | 
The function ensure-model-color returns a color specification for color-spec in the color model specified by model.
If color-spec has an alpha component, then result has that same alpha component.
(ensure-model-color (make-rgb 1 1 0 0.75) :hsv) => #(:HSV 1 1 1 0.75)
convert-color
colors=
ensure-color
ensure-rgb
15 The Color System
CAPI User Guide and Reference Manual (Unix version) - 01 Dec 2021 19:33:10