LispWorks CAPI Reference Manual > 3 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-<component>


LispWorks CAPI Reference Manual - 21 Dec 2009

NextPrevUpTopContentsIndex