All Manuals > CAPI User Guide and Reference Manual > 24 COLOR Reference Entries

get-color-alias-translation Function

Summary

Return the ultimate color name associated a color alias.

Package

color

Signature

get-color-alias-translation color-alias => color-name

Arguments
color-alias
A defined color alias.
Values
color-name
The color name associated with color-alias.
Description

The function get-color-alias-translation returns the ultimate color name associated with color-alias.

Examples
CL-USER 23 > (color:define-color-alias :lispworks-blue 
               (color:make-rgb 0.70s0 0.90s0 0.99s0))
:lispworks-blue
 
CL-USER 24 > (color:define-color-alias 
               :color-background :lispworks-blue)
:color-background
 
CL-USER 25 > (color:define-color-alias 
               :listener-background :color-background)
:listener-background
 
CL-USER 26 > (color:get-color-alias-translation 
                   :listener-background)
:LISPWORKS-BLUE
 
CL-USER 27 > (color:get-color-alias-translation 
                   :color-background)
:LISPWORKS-BLUE
 
CL-USER 28 > 
See also

define-color-alias
get-color-spec
15 The Color System


CAPI User Guide and Reference Manual (Unix version) - 01 Dec 2021 19:33:10