Returns color aliases containing a given string.
color
apropos-color-alias-names substring => list
substring⇩ |
A string. |
list |
A list of symbols. |
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.
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 >
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