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

apropos-color-alias-names Function

Summary

Returns color aliases containing a given string.

Package

color

Signature

apropos-color-alias-names substring => list

Arguments
substring
A string.
Values
list
A list of symbols.
Description

The function apropos-color-alias-names returns a list of symbols whose symbol-names contain substring and which are defined as aliases in the color-database defining color aliases. By convention these are in the keyword package.

Examples

In this example, a color alias is defined for the color indianred1. apropos-color-alias-names only returns this alias, rather than both the alias and the original color, despite the similarity in the names.

CL-USER 8 > (color:define-color-alias :myindianred1 
                              :indianred1)
(#S(COLOR-ALIAS COLOR :INDIANRED1))
 
CL-USER 9 > (color:apropos-color-names "INDIANRED1")
(:INDIANRED1 :MYINDIANRED1)
 
CL-USER 10 > (color:apropos-color-alias-names "INDIANRED1")
(:MYINDIANRED1)
 
CL-USER 11 > 
See also

apropos-color-names
apropos-color-spec-names
get-all-color-names
15 The Color System


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