Next Previous Up Top Contents Index

2 The COLOR Package

make-rgb

Function

Summary

Returns a color specification in the red-green-blue model.
Package

color

Signature

make-rgb red green blue => color-spec

Arguments

red

A red component.

green

A green component.

blue

A blue component.

Values

color-spec

A color specification.

Description

Return a color-spec in the:RGB model with components red, green and blue.
Note that short floats are used for each component; this results in the most efficient color conversion process. However, any floating point number type can be used.
Example

The object returned by the following call defines the color red in the RGB model:
COLOR 25 > (color:make-rgb 1.0s0 0.0s0 0.0s0)
#(:RGB 1.0S0 0.0S0 0.0S0)

COLOR 26 >

See also

make-hsv
make-gray
color-model
color-<component>
color-level


LispWorks Reference Manual - 15 Oct 1998

Next Previous Up Top Contents Index

Generated with Harlequin WebMaker