Next Previous Up Top Contents Index

2 The COLOR Package

convert-color

Function

Summary

Return the representation of a color specification on a given graphics port.
Package

color

Signature

convert-color port color &key errorp => color-rep

Arguments

port

A graphics port.

color

A color specification.

errorp

Ift, check for errors. By default, this ist.

Values

color-rep

Representation of color on port.

Description

Return the representation of color on the given graphics port port. In CLX, this is the "pixel" value, which corresponds to an index into the default colormap. It is more efficient to use the result ofconvert-color in place of its argument in drawing function calls, but the penalty is the risk of erroneous colors being displayed should the colormap or the colormap entry be changed.
See also

colors=
ensure-<command>


LispWorks Reference Manual - 15 Oct 1998

Next Previous Up Top Contents Index

Generated with Harlequin WebMaker