Next Previous Up Top Contents Index

2 The COLOR Package

color-<component>

Function

Summary

Returns the associated component of a color specification.
Package

color

Signature

color-red color-spec => color-component
color-green color-spec => color-component
color-blue color-spec => color-component
color-hue color-spec => color-component
color-saturation color-spec => color-component
color-value color-spec => color-component

Arguments

color-spec

A color specification.

Values

color-component

A color component from the appropriate color model.

Description

If color-spec is not from the appropriate color model (:rgb in the case ofcolor-red,color-green andcolor-blue, and:hsv in the case ofcolor-hue,color-saturation andcolor-value) then the component is calculated.
Example

COLOR 31 > (color:make-rgb 1.0s0 0.0s0 0.0s0)
#(:RGB 1.0S0 0.0S0 0.0S0)

COLOR 32 > (color-red *) 1.0S0

COLOR 33 > (color-green **) 0.0S0

COLOR 34 > (color-value ***) 1.0S0

COLOR 35 >

See also

make-hsv
make-rgb
make-gray
color-model
color-level


LispWorks Reference Manual - 15 Oct 1998

Next Previous Up Top Contents Index

Generated with Harlequin WebMaker