diff options
author | Eduardo Julian | 2019-01-11 21:35:08 -0400 |
---|---|---|
committer | Eduardo Julian | 2019-01-11 21:35:08 -0400 |
commit | 1cff4426a937119c6bcd9aedb157e40f2b6d7ae3 (patch) | |
tree | 096251761730f69fdffdc45ad0b4887468c3c272 | |
parent | 67cafaf8c356609aaece12a6371361b5aa4eef0f (diff) |
Added named colors.
Diffstat (limited to '')
-rw-r--r-- | stdlib/source/lux/data/color/named.lux | 155 |
1 files changed, 155 insertions, 0 deletions
diff --git a/stdlib/source/lux/data/color/named.lux b/stdlib/source/lux/data/color/named.lux new file mode 100644 index 000000000..76b8545f1 --- /dev/null +++ b/stdlib/source/lux/data/color/named.lux @@ -0,0 +1,155 @@ +(.module: + [lux #* + [data + [number (#+ hex)]]] + ["." // (#+ Color)]) + +(do-template [<name> <red> <green> <blue>] + [(def: #export <name> + Color + (//.from-rgb {#//.red (hex <red>) + #//.green (hex <green>) + #//.blue (hex <blue>)}))] + + [alice-blue "F0" "F8" "FF"] + [antique-white "FA" "EB" "D7"] + [aqua "00" "FF" "FF"] + [aquamarine "7F" "FF" "D4"] + [azure "F0" "FF" "FF"] + [beige "F5" "F5" "DC"] + [bisque "FF" "E4" "C4"] + [black "00" "00" "00"] + [blanched-almond "FF" "EB" "CD"] + [blue "00" "00" "FF"] + [blue-violet "8A" "2B" "E2"] + [brown "A5" "2A" "2A"] + [burly-wood "DE" "B8" "87"] + [cadet-blue "5F" "9E" "A0"] + [chartreuse "7F" "FF" "00"] + [chocolate "D2" "69" "1E"] + [coral "FF" "7F" "50"] + [cornflower-blue "64" "95" "ED"] + [cornsilk "FF" "F8" "DC"] + [crimson "DC" "14" "3C"] + [cyan "00" "FF" "FF"] + [dark-blue "00" "00" "8B"] + [dark-cyan "00" "8B" "8B"] + [dark-goldenrod "B8" "86" "0B"] + [dark-gray "A9" "A9" "A9"] + [dark-green "00" "64" "00"] + [dark-khaki "BD" "B7" "6B"] + [dark-magenta "8B" "00" "8B"] + [dark-olive-green "55" "6B" "2F"] + [dark-orange "FF" "8C" "00"] + [dark-orchid "99" "32" "CC"] + [dark-red "8B" "00" "00"] + [dark-salmon "E9" "96" "7A"] + [dark-sea-green "8F" "BC" "8F"] + [dark-slate-blue "48" "3D" "8B"] + [dark-slate-gray "2F" "4F" "4F"] + [dark-turquoise "00" "CE" "D1"] + [dark-violet "94" "00" "D3"] + [deep-pink "FF" "14" "93"] + [deep-sky-blue "00" "BF" "FF"] + [dim-gray "69" "69" "69"] + [dodger-blue "1E" "90" "FF"] + [fire-brick "B2" "22" "22"] + [floral-white "FF" "FA" "F0"] + [forest-green "22" "8B" "22"] + [fuchsia "FF" "00" "FF"] + [gainsboro "DC" "DC" "DC"] + [ghost-white "F8" "F8" "FF"] + [gold "FF" "D7" "00"] + [goldenrod "DA" "A5" "20"] + [gray "80" "80" "80"] + [green "00" "80" "00"] + [green-yellow "AD" "FF" "2F"] + [honey-dew "F0" "FF" "F0"] + [hot-pink "FF" "69" "B4"] + [indian-red "CD" "5C" "5C"] + [indigo "4B" "00" "82"] + [ivory "FF" "FF" "F0"] + [khaki "F0" "E6" "8C"] + [lavender "E6" "E6" "FA"] + [lavender-blush "FF" "F0" "F5"] + [lawn-green "7C" "FC" "00"] + [lemon-chiffon "FF" "FA" "CD"] + [light-blue "AD" "D8" "E6"] + [light-coral "F0" "80" "80"] + [light-cyan "E0" "FF" "FF"] + [light-goldenrod-yellow "FA" "FA" "D2"] + [light-gray "D3" "D3" "D3"] + [light-green "90" "EE" "90"] + [light-pink "FF" "B6" "C1"] + [light-salmon "FF" "A0" "7A"] + [light-sea-green "20" "B2" "AA"] + [light-sky-blue "87" "CE" "FA"] + [light-slate-gray "77" "88" "99"] + [light-steel-blue "B0" "C4" "DE"] + [light-yellow "FF" "FF" "E0"] + [lime "00" "FF" "00"] + [lime-green "32" "CD" "32"] + [linen "FA" "F0" "E6"] + [magenta "FF" "00" "FF"] + [maroon "80" "00" "00"] + [medium-aquamarine "66" "CD" "AA"] + [medium-blue "00" "00" "CD"] + [medium-orchid "BA" "55" "D3"] + [medium-purple "93" "70" "DB"] + [medium-sea-green "3C" "B3" "71"] + [medium-slate-blue "7B" "68" "EE"] + [medium-spring-green "00" "FA" "9A"] + [medium-turquoise "48" "D1" "CC"] + [medium-violet-red "C7" "15" "85"] + [midnight-blue "19" "19" "70"] + [mint-cream "F5" "FF" "FA"] + [misty-rose "FF" "E4" "E1"] + [moccasin "FF" "E4" "B5"] + [navajo-white "FF" "DE" "AD"] + [navy "00" "00" "80"] + [old-lace "FD" "F5" "E6"] + [olive "80" "80" "00"] + [olive-drab "6B" "8E" "23"] + [orange "FF" "A5" "00"] + [orange-red "FF" "45" "00"] + [orchid "DA" "70" "D6"] + [pale-goldenrod "EE" "E8" "AA"] + [pale-green "98" "FB" "98"] + [pale-turquoise "AF" "EE" "EE"] + [pale-violet-red "DB" "70" "93"] + [papaya-whip "FF" "EF" "D5"] + [peach-puff "FF" "DA" "B9"] + [peru "CD" "85" "3F"] + [pink "FF" "C0" "CB"] + [plum "DD" "A0" "DD"] + [powder-blue "B0" "E0" "E6"] + [purple "80" "00" "80"] + [rebecca-purple "66" "33" "99"] + [red "FF" "00" "00"] + [rosy-brown "BC" "8F" "8F"] + [royal-blue "41" "69" "E1"] + [saddle-brown "8B" "45" "13"] + [salmon "FA" "80" "72"] + [sandy-brown "F4" "A4" "60"] + [sea-green "2E" "8B" "57"] + [sea-shell "FF" "F5" "EE"] + [sienna "A0" "52" "2D"] + [silver "C0" "C0" "C0"] + [sky-blue "87" "CE" "EB"] + [slate-blue "6A" "5A" "CD"] + [slate-gray "70" "80" "90"] + [snow "FF" "FA" "FA"] + [spring-green "00" "FF" "7F"] + [steel-blue "46" "82" "B4"] + [tan "D2" "B4" "8C"] + [teal "00" "80" "80"] + [thistle "D8" "BF" "D8"] + [tomato "FF" "63" "47"] + [turquoise "40" "E0" "D0"] + [violet "EE" "82" "EE"] + [wheat "F5" "DE" "B3"] + [white "FF" "FF" "FF"] + [white-smoke "F5" "F5" "F5"] + [yellow "FF" "FF" "00"] + [yellow-green "9A" "CD" "32"] + ) |