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