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

NextPrevUpTopContentsIndex

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

Return the gray level of color-spec . If color-spec is not from the :GRAY model, the component is calculated.

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

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


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

NextPrevUpTopContentsIndex