Defines all the color models.
color
define-color-models model-descriptors => color-models
model-descriptors⇩ |
A list, each element being a model-descriptor. |
color-models |
The color models defined. |
The macro define-color-models
defines the color models in model-descriptors.
A model descriptor has the syntax:
(model-name component-descr*)
A component-descr is a list:
(component-name lowest-value highest-value)
The default color models are defined by the following form:
(color:define-color-models ((:rgb (red 0.0 1.0) (green 0.0 1.0) (blue 0.0 1.0)) (:hsv (hue 0.0 5.99999) (saturation 0.0 1.0) (value 0.0 1.0)) (:gray (level 0.0 1.0))))
If you want to keep existing color models, add your new ones to this list: only one define-color-models
form is recognized. The form should be compiled.
To replace the HSV color model with a CMYK model, while retaining the other color models:
(define-color-models ((:rgb (red 0.0 1.0) (green 0.0 1.0) (blue 0.0 1.0)) (:cmyk (cyan 0.0 1.0) (magenta 0.0 1.0) (yellow 0.0 1.0) (black 0.0 1.0) (:gray (level 0.0 1.0))))
CAPI User Guide and Reference Manual (Unix version) - 01 Dec 2021 19:33:10