red
tan
8.18
top
← prev up next →

colors-as-stringsπŸ”— i

thoughtstem

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

So you can do, for example:

 
(require2htdp/imagecolors-as-strings)
 
(circle40'solidred )

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

Just the string "aliceblue"
Just the string "antiquewhite"

value

aqua :string?

Just the string "aqua"
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"
Just the string "blanchedalmond"

value

blue :string?

Just the string "blue"
Just the string "blueviolet"

value

brown :string?

Just the string "brown"
Just the string "burlywood"
Just the string "cadetblue"
Just the string "chartreuse"
Just the string "chocolate"

value

coral :string?

Just the string "coral"
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"
Just the string "darkgoldenrod"

value

darkgray :string?

Just the string "darkgray"
Just the string "darkgreen"
Just the string "darkkhaki"
Just the string "darkmagenta"
Just the string "darkolivegreen"
Just the string "darkorange"
Just the string "darkorchid"

value

darkred :string?

Just the string "darkred"
Just the string "darksalmon"
Just the string "darkseagreen"
Just the string "darkslateblue"
Just the string "darkslategray"
Just the string "darkturquoise"
Just the string "darkviolet"

value

deeppink :string?

Just the string "deeppink"
Just the string "deepskyblue"

value

dimgray :string?

Just the string "dimgray"
Just the string "dodgerblue"
Just the string "firebrick"
Just the string "floralwhite"
Just the string "forestgreen"

value

fuchsia :string?

Just the string "fuchsia"
Just the string "gainsboro"
Just the string "ghostwhite"

value

gold :string?

Just the string "gold"
Just the string "goldenrod"

value

gray :string?

Just the string "gray"

value

green :string?

Just the string "green"
Just the string "greenyellow"

value

honeydew :string?

Just the string "honeydew"

value

hotpink :string?

Just the string "hotpink"
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"
Just the string "lavenderblush"
Just the string "lawngreen"
Just the string "lemonchiffon"
Just the string "lightblue"
Just the string "lightcoral"
Just the string "lightcyan"
Just the string "lightgoldenrodyellow"
Just the string "lightgray"
Just the string "lightgreen"
Just the string "lightpink"
Just the string "lightsalmon"
Just the string "lightseagreen"
Just the string "lightskyblue"
Just the string "lightslategray"
Just the string "lightsteelblue"
Just the string "lightyellow"

value

lime :string?

Just the string "lime"
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"
Just the string "mediumaquamarine"
Just the string "mediumblue"
Just the string "mediumforestgreen"
Just the string "mediumgoldenrod"
Just the string "mediumorchid"
Just the string "mediumpurple"
Just the string "mediumseagreen"
Just the string "mediumslateblue"
Just the string "mediumspringgreen"
Just the string "mediumturquoise"
Just the string "mediumvioletred"
Just the string "midnightblue"
Just the string "mintcream"
Just the string "mistyrose"

value

moccasin :string?

Just the string "moccasin"
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"
Just the string "olivedrab"

value

orange :string?

Just the string "orange"
Just the string "orangered"

value

orchid :string?

Just the string "orchid"
Just the string "palegoldenrod"
Just the string "palegreen"
Just the string "paleturquoise"
Just the string "palevioletred"
Just the string "papayawhip"
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"
Just the string "powderblue"

value

purple :string?

Just the string "purple"

value

red :string?

Just the string "red"
Just the string "rosybrown"
Just the string "royalblue"
Just the string "saddlebrown"

value

salmon :string?

Just the string "salmon"
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"
Just the string "slateblue"
Just the string "slategray"

value

snow :string?

Just the string "snow"
Just the string "springgreen"
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"
Just the string "turquoise"

value

violet :string?

Just the string "violet"
Just the string "violetred"

value

wheat :string?

Just the string "wheat"

value

white :string?

Just the string "white"
Just the string "whitesmoke"

value

yellow :string?

Just the string "yellow"
Just the string "yellowgreen"

top
← prev up next →

AltStyle γ«γ‚ˆγ£γ¦ε€‰ζ›γ•γ‚ŒγŸγƒšγƒΌγ‚Έ (->γ‚ͺγƒͺγ‚ΈγƒŠγƒ«) /