colors-as-strings
aliceblue
antiquewhite
aqua
aquamarine
azure
beige
bisque
black
blanchedalmond
blue
blueviolet
brown
burlywood
cadetblue
chartreuse
chocolate
coral
cornflowerblue
cornsilk
crimson
cyan
darkblue
darkcyan
darkgoldenrod
darkgray
darkgreen
darkkhaki
darkmagenta
darkolivegreen
darkorange
darkorchid
darkred
darksalmon
darkseagreen
darkslateblue
darkslategray
darkturquoise
darkviolet
deeppink
deepskyblue
dimgray
dodgerblue
firebrick
floralwhite
forestgreen
fuchsia
gainsboro
ghostwhite
gold
goldenrod
gray
green
greenyellow
honeydew
hotpink
indianred
indigo
ivory
khaki
lavender
lavenderblush
lawngreen
lemonchiffon
lightblue
lightcoral
lightcyan
lightgoldenrodyellow
lightgray
lightgreen
lightpink
lightsalmon
lightseagreen
lightskyblue
lightslategray
lightsteelblue
lightyellow
lime
limegreen
linen
magenta
maroon
mediumaquamarine
mediumblue
mediumforestgreen
mediumgoldenrod
mediumorchid
mediumpurple
mediumseagreen
mediumslateblue
mediumspringgreen
mediumturquoise
mediumvioletred
midnightblue
mintcream
mistyrose
moccasin
navajowhite
navy
oldlace
olive
olivedrab
orange
orangered
orchid
palegoldenrod
palegreen
paleturquoise
palevioletred
papayawhip
peachpuff
peru
pink
plum
powderblue
purple
red
rosybrown
royalblue
saddlebrown
salmon
sandybrown
seagreen
seashell
sienna
silver
skyblue
slateblue
slategray
snow
springgreen
steelblue
tan
teal
thistle
tomato
turquoise
violet
violetred
wheat
white
whitesmoke
yellow
yellowgreen
9.0.0.3

colors-as-strings🔗ℹ

thoughtstem

 (require colors-as-strings) package: colors-as-strings

This just provides, as identifiers, strings that correspond to colors in the racket/draw color database.

So you can do, for example:

#lang racket
 
(require 2htdp/image colors-as-strings)
 
(circle 40 'solid red)

Save yourself a few keystrokes per color. And get Racket to detect your mispelled color names!

value

aliceblue : string?

Just the string "aliceblue"

value

antiquewhite : string?

Just the string "antiquewhite"

value

aqua : string?

Just the string "aqua"

value

aquamarine : string?

Just the string "aquamarine"

value

azure : string?

Just the string "azure"

value

beige : string?

Just the string "beige"

value

bisque : string?

Just the string "bisque"

value

black : string?

Just the string "black"

value

blanchedalmond : string?

Just the string "blanchedalmond"

value

blue : string?

Just the string "blue"

value

blueviolet : string?

Just the string "blueviolet"

value

brown : string?

Just the string "brown"

value

burlywood : string?

Just the string "burlywood"

value

cadetblue : string?

Just the string "cadetblue"

value

chartreuse : string?

Just the string "chartreuse"

value

chocolate : string?

Just the string "chocolate"

value

coral : string?

Just the string "coral"

value

cornflowerblue : string?

Just the string "cornflowerblue"

value

cornsilk : string?

Just the string "cornsilk"

value

crimson : string?

Just the string "crimson"

value

cyan : string?

Just the string "cyan"

value

darkblue : string?

Just the string "darkblue"

value

darkcyan : string?

Just the string "darkcyan"

value

darkgoldenrod : string?

Just the string "darkgoldenrod"

value

darkgray : string?

Just the string "darkgray"

value

darkgreen : string?

Just the string "darkgreen"

value

darkkhaki : string?

Just the string "darkkhaki"

value

darkmagenta : string?

Just the string "darkmagenta"

value

darkolivegreen : string?

Just the string "darkolivegreen"

value

darkorange : string?

Just the string "darkorange"

value

darkorchid : string?

Just the string "darkorchid"

value

darkred : string?

Just the string "darkred"

value

darksalmon : string?

Just the string "darksalmon"

value

darkseagreen : string?

Just the string "darkseagreen"

value

darkslateblue : string?

Just the string "darkslateblue"

value

darkslategray : string?

Just the string "darkslategray"

value

darkturquoise : string?

Just the string "darkturquoise"

value

darkviolet : string?

Just the string "darkviolet"

value

deeppink : string?

Just the string "deeppink"

value

deepskyblue : string?

Just the string "deepskyblue"

value

dimgray : string?

Just the string "dimgray"

value

dodgerblue : string?

Just the string "dodgerblue"

value

firebrick : string?

Just the string "firebrick"

value

floralwhite : string?

Just the string "floralwhite"

value

forestgreen : string?

Just the string "forestgreen"

value

fuchsia : string?

Just the string "fuchsia"

value

gainsboro : string?

Just the string "gainsboro"

value

ghostwhite : string?

Just the string "ghostwhite"

value

gold : string?

Just the string "gold"

value

goldenrod : string?

Just the string "goldenrod"

value

gray : string?

Just the string "gray"

value

green : string?

Just the string "green"

value

greenyellow : string?

Just the string "greenyellow"

value

honeydew : string?

Just the string "honeydew"

value

hotpink : string?

Just the string "hotpink"

value

indianred : string?

Just the string "indianred"

value

indigo : string?

Just the string "indigo"

value

ivory : string?

Just the string "ivory"

value

khaki : string?

Just the string "khaki"

value

lavender : string?

Just the string "lavender"

value

lavenderblush : string?

Just the string "lavenderblush"

value

lawngreen : string?

Just the string "lawngreen"

value

lemonchiffon : string?

Just the string "lemonchiffon"

value

lightblue : string?

Just the string "lightblue"

value

lightcoral : string?

Just the string "lightcoral"

value

lightcyan : string?

Just the string "lightcyan"

value

lightgoldenrodyellow : string?

Just the string "lightgoldenrodyellow"

value

lightgray : string?

Just the string "lightgray"

value

lightgreen : string?

Just the string "lightgreen"

value

lightpink : string?

Just the string "lightpink"

value

lightsalmon : string?

Just the string "lightsalmon"

value

lightseagreen : string?

Just the string "lightseagreen"

value

lightskyblue : string?

Just the string "lightskyblue"

value

lightslategray : string?

Just the string "lightslategray"

value

lightsteelblue : string?

Just the string "lightsteelblue"

value

lightyellow : string?

Just the string "lightyellow"

value

lime : string?

Just the string "lime"

value

limegreen : string?

Just the string "limegreen"

value

linen : string?

Just the string "linen"

value

magenta : string?

Just the string "magenta"

value

maroon : string?

Just the string "maroon"

value

mediumaquamarine : string?

Just the string "mediumaquamarine"

value

mediumblue : string?

Just the string "mediumblue"

value

mediumforestgreen : string?

Just the string "mediumforestgreen"

value

mediumgoldenrod : string?

Just the string "mediumgoldenrod"

value

mediumorchid : string?

Just the string "mediumorchid"

value

mediumpurple : string?

Just the string "mediumpurple"

value

mediumseagreen : string?

Just the string "mediumseagreen"

value

mediumslateblue : string?

Just the string "mediumslateblue"

value

mediumspringgreen : string?

Just the string "mediumspringgreen"

value

mediumturquoise : string?

Just the string "mediumturquoise"

value

mediumvioletred : string?

Just the string "mediumvioletred"

value

midnightblue : string?

Just the string "midnightblue"

value

mintcream : string?

Just the string "mintcream"

value

mistyrose : string?

Just the string "mistyrose"

value

moccasin : string?

Just the string "moccasin"

value

navajowhite : string?

Just the string "navajowhite"

value

navy : string?

Just the string "navy"

value

oldlace : string?

Just the string "oldlace"

value

olive : string?

Just the string "olive"

value

olivedrab : string?

Just the string "olivedrab"

value

orange : string?

Just the string "orange"

value

orangered : string?

Just the string "orangered"

value

orchid : string?

Just the string "orchid"

value

palegoldenrod : string?

Just the string "palegoldenrod"

value

palegreen : string?

Just the string "palegreen"

value

paleturquoise : string?

Just the string "paleturquoise"

value

palevioletred : string?

Just the string "palevioletred"

value

papayawhip : string?

Just the string "papayawhip"

value

peachpuff : string?

Just the string "peachpuff"

value

peru : string?

Just the string "peru"

value

pink : string?

Just the string "pink"

value

plum : string?

Just the string "plum"

value

powderblue : string?

Just the string "powderblue"

value

purple : string?

Just the string "purple"

value

red : string?

Just the string "red"

value

rosybrown : string?

Just the string "rosybrown"

value

royalblue : string?

Just the string "royalblue"

value

saddlebrown : string?

Just the string "saddlebrown"

value

salmon : string?

Just the string "salmon"

value

sandybrown : string?

Just the string "sandybrown"

value

seagreen : string?

Just the string "seagreen"

value

seashell : string?

Just the string "seashell"

value

sienna : string?

Just the string "sienna"

value

silver : string?

Just the string "silver"

value

skyblue : string?

Just the string "skyblue"

value

slateblue : string?

Just the string "slateblue"

value

slategray : string?

Just the string "slategray"

value

snow : string?

Just the string "snow"

value

springgreen : string?

Just the string "springgreen"

value

steelblue : string?

Just the string "steelblue"

value

tan : string?

Just the string "tan"

value

teal : string?

Just the string "teal"

value

thistle : string?

Just the string "thistle"

value

tomato : string?

Just the string "tomato"

value

turquoise : string?

Just the string "turquoise"

value

violet : string?

Just the string "violet"

value

violetred : string?

Just the string "violetred"

value

wheat : string?

Just the string "wheat"

value

white : string?

Just the string "white"

value

whitesmoke : string?

Just the string "whitesmoke"

value

yellow : string?

Just the string "yellow"

value

yellowgreen : string?

Just the string "yellowgreen"