MrOmega |
04-07-2011 07:36 PM |
New Body Colors References
2 Attachment(s)
Dabbling and playing with the new color codes ( 0 - 169) for a total of 143 new colors (Shades of gray are list as both gray and grey making it 150 colors but grays/greys are the same color)
I posted this in another part of the forums, but I figure this is the correct places for them.
Here's a list of color code to the color names
(Note:indianred is the proper name for the hex code, but it always sets the color as white, not sure if Stefan used another name for that color.)
PHP Code:
0 - white 1 - yellow 2 - orange 3 - pink 4 - red 5 - darkred 6 - lightgreen 7 - green 8 - darkgreen 9 - lightblue 10 - blue 11 - darkblue 12 - brown 13 - cynober 14 - purple 15 - darkpurple 16 - lightgray 17 - gray 18 - black 19 - transparent 20 - aliceblue 21 - antiquewhite 22 - aqua 23 - aquamarine 24 - azure 25 - beige 26 - bisque 27 - black 28 - blanchedalmond 29 - blue 30 - blueviolet 31 - brown 32 - burlywood 33 - cadetblue 34 - chartreuse 35 - chocolate 36 - coral 37 - cornflowerblue 38 - cornsilk 39 - crimson 40 - cynober 41 - darkblue 42 - darkcyan 43 - darkgoldenrod 44 - darkgray 45 - darkgrey 46 - darkgreen 47 - darkkhaki 48 - darkmagenta 49 - darkolivegreen 50 - darkorange 51 - darkorchid 52 - darkred 53 - darksalmon 54 - darkseagreen 55 - darkslateblue 56 - darkslategray 57 - darkslategrey 58 - darkturquoise 59 - darkviolet 60 - deeppink 61 - deepskyblue 62 - dimgray 63 - dimgrey 64 - dodgerblue 65 - feldspar 66 - firebrick 67 - floralwhite 68 - forestgreen 69 - fuchsia 70 - gainsboro 71 - ghostwhite 72 - gold 73 - goldenrod 74 - gray 75 - green 76 - greenyellow 77 - grey 78 - honeydew 79 - hotpink 80 - indianred "Incorrect color name? Won't set with name, but will with 80." 81 - indigo 82 - ivory 83 - khaki 84 - lavender 85 - lavenderblush 86 - lawngreen 87 - lemonchiffon 88 - lightblue 89 - lightcoral 90 - lightcyan 91 - lightgoldenrodyellow 92 - lightgray 93 - lightgrey 94 - lightgreen 95 - lightpink 96 - lightsalmon 97 - lightseagreen 98 - lightskyblue 99 - lightslateblue 100 - lightslategray 101 - lightslategrey 102 - lightsteelblue 103 - lightyellow 104 - lime 105 - limegreen 106 - linen 107 - magenta 108 - maroon 109 - mediumaquamarine 110 - mediumblue 111 - mediumorchid 112 - mediumpurple 113 - mediumseagreen 114 - mediumslateblue 115 - mediumspringgreen 116 - mediumturquoise 117 - mediumvioletred 118 - midnightblue 119 - mintcream 120 - mistyrose 121 - moccasin 122 - navajowhite 123 - navy 124 - oldlace 125 - olive 126 - olivedrab 127 - orange 128 - orangered 129 - orchid 130 - palegoldenrod 131 - palegreen 132 - paleturquoise 133 - palevioletred 134 - papayawhip 135 - peachpuff 136 - peru 137 - pink 138 - plum 139 - powderblue 140 - purple 141 - red 142 - rosybrown 143 - royalblue 144 - saddlebrown 145 - salmon 146 - sandybrown 147 - seagreen 148 - seashell 149 - sienna 150 - silver 151 - skyblue 152 - slateblue 153 - slategray 154 - slategrey 155 - snow 156 - springgreen 157 - steelblue 158 - tan 159 - teal 160 - thistle 161 - tomato 162 - turquoise 163 - violet 164 - violetred 165 - wheat 166 - white 167 - whitesmoke 168 - yellow 169 - yellowgreen
Attached it a function that will return an entire of array with a name, corename, hex, RGB, HSL and HSV.
the format for the array goes as
PHP Code:
{ NAME, CORENAME, HEX, { RED, GREEN, BLUE}, { HUE, {SATURATION, LIGHT}, {SATURATION, VALUE}}}
example (I store the function in a class called 'core')
PHP Code:
//#CLIENTSIDE function onCreated() {
this.join( "core"); this.newColors = core::getColors();
}
function ChatBar.onAction() { temp.tokens = ChatBar.text.tokenize();
if ( temp.tokens.size() == 2 && temp.tokens[ 0] == "/getColor" && int( temp.tokens[ 1]) in | 0, 169| && temp.tokens[ 1].length() in | 1, 3|) {
ChatBar.text = ""; echo( "The color '" @ this.newColors[ temp.tokens[ 1]][ 0] @ "', has the RGB values of" SPC this.newColors[ temp.tokens[ 1]][ 3] @".");
} }
If you would type 157 and press enter the output would be
PHP Code:
The color 'Steel Blue', has the RGB values of "0.27,0.51,0.71".
I figure someone could make a nice looking palette using the RGB/HSL/HSV values.
Also attached is a palette I made following the color code.
|