Next Previous Up Top Contents Index

2 The COLOR Package

get-color-spec

Function

Summary

Returns the color-spec for a color.
Package

color

Signature

get-color-spec color => color-spec

Arguments

color

A defined color specification, color alias, or an original color name.

Values

color-spec

A color specification.

Description

Returns the color-spec for color, which can be a color-spec, a color-alias, or an original color name.
Example

COLOR 28 > (color:define-color-alias :lispworks-blue 
               (color:make-rgb 0.70s0 0.90s0 0.99s0))
(#S(COLOR-ALIAS COLOR #(:RGB 0.699999S0 0.9S0 0.99S0)))

COLOR 29 > (color:define-color-alias :color-background :lispworks-blue) (#S(COLOR-ALIAS COLOR :LISPWORKS-BLUE))

COLOR 30 > (color:define-color-alias :listener-background :color-background) (#S(COLOR-ALIAS COLOR :COLOR-BACKGROUND))

COLOR 31 > (get-color-spec :listener-background) #(:RGB 0.699999S0 0.9S0 0.99S0)

COLOR 32 > (get-color-spec :color-background) #(:RGB 0.699999S0 0.9S0 0.99S0)

COLOR 33 > (get-color-spec :lispworks-blue) #(:RGB 0.699999S0 0.9S0 0.99S0)

COLOR 34 > (get-color-spec #(:RGB 0.70s0 0.90s0 0.99s0)) #(:RGB 0.699999S0 0.9S0 0.99S0)

COLOR 35 >

See also

define-color-alias
get-color-alias-translation


LispWorks Reference Manual - 15 Oct 1998

Next Previous Up Top Contents Index

Generated with Harlequin WebMaker