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

color-level Function

Summary

Returns the gray level of a color specification.

Package

color

Signature

color-level color-spec => gray-level

Arguments
color-spec
A color specification.
Values
gray-level
Color component from the :gray model.
Description

The function color-level return the gray level of color-spec. If color-spec is not from the :gray model, the component is calculated.

Examples
CL-USER 2 > (color:make-gray 0.66667s0)
#(:GRAY 0.66667S0)
 
CL-USER 3 > (color:color-level *)
0.66667S0
 
CL-USER 4 >
See also

make-hsv
make-rgb
make-gray
color-model
color-blue
15.3 Color models


CAPI User Guide and Reference Manual (Windows version) - 01 Dec 2021 19:34:21