Next Previous Up Top Contents Index

4.3 DUIM-DCs Module

find-color

Generic function

Summary

Looks up and returns a color by name.

Signature

find-color name palette #key error? => color

Arguments

name
An instance of type <string>.

palette
An instance of type <palette>.

error?
An instance of type <boolean>. Default value: #f.

Values

color
An instance of type <color>.

Library

duim-dcs

Module

duim-dcs

Description

Looks up and returns a color by name. Table 4.2 lists the commonly provided color names that can be looked up with find-color.

Table 4.2 Common color names

alice-blue

antique-white

aquamarine

azure

beige

bisque

black

blanched-almond

blue

blue-violet

brown

burlywood

cadet-blue

chartreuse

chocolate

coral

cornflower-blue

cornsilk

cyan

dark-goldenrod

dark-green

dark-khaki

dark-olive-green

dark-orange

dark-orchid

dark-salmon

dark-sea-green

dark-slate-blue

dark-slate-gray

dark-turquoise

dark-violet

deep-pink

deep-sky-blue

dim-gray

dodger-blue

firebrick

floral-white

forest-green

gainsboro

ghost-white

gold

goldenrod

gray

green

green-yellow

honeydew

hot-pink

indian-red

ivory

khaki

lavender

lavender-blush

lawn-green

lemon-chiffon

light-blue

light-coral

light-cyan

light-goldenrod

light-goldenrod-yellow

light-gray

light-pink

light-salmon

light-sea-green

light-sky-blue

light-slate-blue

light-slate-gray

light-steel-blue

light-yellow

lime-green

linen

magenta

maroon

medium-aquamarine

medium-blue

medium-orchid

medium-purple

medium-sea-green

medium-slate-blue

medium-spring-green

medium-turquoise

medium-violet-red

midnight-blue

mint-cream

misty-rose

moccasin

navajo-white

navy-blue

old-lace

olive-drab

orange

orange-red

orchid

pale-goldenrod

pale-green

pale-turquoise

pale-violet-red

papaya-whip

peach-puff

peru

pink

plum

powder-blue

purple

red

rosy-brown

royal-blue

saddle-brown

salmon

sandy-brown

sea-green

seashell

sienna

sky-blue

slate-blue

slate-gray

snow

spring-green

steel-blue

tan

thistle

tomato

turquoise

violet

violet-red

wheat

white

white-smoke

yellow

yellow-green

Application programs can define other colors; these are provided because they are commonly used in the X Windows community, not because there is anything special about these particular colors.

See also

$black, page 118

stencil?, page 184

$red, page 182

$yellow, page 196

$green, page 153

$blue, page 118

$magenta, page 159

contrasting-dash-patterns-limit, page 140


Functional Developer Library Reference: DUIM - 3 Dec 1998

Next Previous Up Top Contents Index