Module colour
[hide private]
[frames] | no frames]

Source Code for Module colour

   1  ############################################################################### 
   2  #                                                                             # 
   3  # Copyright (C) 2006-2008 Edward d'Auvergne                                   # 
   4  #                                                                             # 
   5  # This file is part of the program relax.                                     # 
   6  #                                                                             # 
   7  # relax is free software; you can redistribute it and/or modify               # 
   8  # it under the terms of the GNU General Public License as published by        # 
   9  # the Free Software Foundation; either version 2 of the License, or           # 
  10  # (at your option) any later version.                                         # 
  11  #                                                                             # 
  12  # relax is distributed in the hope that it will be useful,                    # 
  13  # but WITHOUT ANY WARRANTY; without even the implied warranty of              # 
  14  # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               # 
  15  # GNU General Public License for more details.                                # 
  16  #                                                                             # 
  17  # You should have received a copy of the GNU General Public License           # 
  18  # along with relax; if not, write to the Free Software                        # 
  19  # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA   # 
  20  #                                                                             # 
  21  ############################################################################### 
  22   
  23  # Module docstring. 
  24  """Module for colour manipulation.""" 
  25   
  26  # Python module imports. 
  27  from numpy import float64, array 
  28   
  29  # relax module imports. 
  30  from relax_errors import RelaxInvalidColourError 
  31   
  32   
  33  _linear_gradient_doc = ["Colour", """ 
  34          The values are coloured based on a linear colour gradient which is specified through the starting and ending colours.  These can either be a string to identify one of the RGB (red, green, blue) colour arrays listed in the tables below, or you can give the RGB vector itself.  For example, 'white' and [1.0, 1.0, 1.0] both select the same colour.  Leaving both colours unset will select the default colour gradient which for each type of analysis is described below. 
  35   
  36          When supplying the colours as strings, two lists of colours can be selected from which to match the strings.  These are the default Molmol colour list and the X11 colour list, both of which are described in the tables below.  The default behaviour is to first search the Molmol list and then the X11 colour list, raising an error if neither contain the name.  To explicitly select these lists, set the colour list to either 'molmol' or 'x11'. 
  37  """] 
  38   
39 -def linear_gradient(value, start, end, colour_list=None):
40 """Return an RGB colour array of the value placed on a linear colour gradient. 41 42 The argument value should be a number between zero and one. The start and end colours can 43 either be strings or RGB colour arrays. 44 45 @param value: The position on the gradient, ranging from zero to one. 46 @type value: float 47 @param start: The starting colour, either the name of the colour as a string or an RGB 48 colour array. 49 @type start: str or list of float 50 @param end: The ending colour, either the name of the colour as a string or an RGB 51 colour array. 52 @type end: str or list of float 53 @keyword colour_list: The colour names to use, one of 'x11' or 'molmol'. 54 @type colour_list: str 55 @return: The position in the gradient. 56 @rtype: float 57 """ 58 59 # Translate the end colour to RGB arrays if necessary. 60 if isinstance(start, str): 61 # Default (search the molmol list then the X11 list). 62 if colour_list == None: 63 try: 64 start = molmol_colours(start) 65 except: 66 start = x11_colours(start) 67 68 # Molmol colours. 69 elif colour_list == 'molmol': 70 start = molmol_colours(start) 71 72 # X11 colours. 73 elif colour_list == 'x11': 74 start = x11_colours(start) 75 76 # Translate the end colour to RGB arrays if necessary. 77 if isinstance(end, str): 78 # Default (search the molmol list then the X11 list). 79 if colour_list == None: 80 try: 81 end = molmol_colours(end) 82 except: 83 end = x11_colours(end) 84 85 # Molmol colours. 86 elif colour_list == 'molmol': 87 end = molmol_colours(end) 88 89 # X11 colours. 90 elif colour_list == 'x11': 91 end = x11_colours(end) 92 93 # Truncate the value to be between zero and one. 94 if value < 0.0: 95 value = 0.0 96 elif value > 1.0: 97 value = 1.0 98 99 # The position on the linear gradient. 100 return value * (end - start) + start
101 102
103 -def molmol_colours(name):
104 """Return the RGB colour array corresponding to the Molmol colour name. 105 106 @param name: The Molmol colour name. 107 @type name: str 108 @return: The RGB colour array. 109 @rtype: list of float 110 """ 111 112 # Initialise the dictionary of colours. 113 colours = {} 114 115 # The colours sorted by the RGB float values. 116 colours['black'] = [0.000, 0.000, 0.000] 117 colours['navy'] = [0.000, 0.000, 0.502] 118 colours['blue'] = [0.000, 0.000, 1.000] 119 colours['dark green'] = [0.000, 0.392, 0.000] 120 colours['green'] = [0.000, 1.000, 0.000] 121 colours['cyan'] = [0.000, 1.000, 1.000] 122 colours['turquoise'] = [0.251, 0.878, 0.816] 123 colours['royal blue'] = [0.255, 0.412, 0.882] 124 colours['aquamarine'] = [0.498, 1.000, 0.831] 125 colours['sky green'] = [0.529, 0.808, 0.922] 126 colours['dark violet'] = [0.580, 0.000, 0.827] 127 colours['pale green'] = [0.596, 0.984, 0.596] 128 colours['purple'] = [0.627, 0.125, 0.941] 129 colours['brown'] = [0.647, 0.165, 0.165] 130 colours['light blue'] = [0.678, 0.847, 0.902] 131 colours['grey'] = [0.745, 0.745, 0.745] 132 colours['light grey'] = [0.827, 0.827, 0.827] 133 colours['violet'] = [0.933, 0.510, 0.933] 134 colours['light coral'] = [0.941, 0.502, 0.502] 135 colours['khaki'] = [0.941, 0.902, 0.549] 136 colours['beige'] = [0.961, 0.961, 0.863] 137 colours['red'] = [1.000, 0.000, 0.000] 138 colours['magenta'] = [1.000, 0.000, 1.000] 139 colours['deep pink'] = [1.000, 0.078, 0.576] 140 colours['orange red'] = [1.000, 0.271, 0.000] 141 colours['hot pink'] = [1.000, 0.412, 0.706] 142 colours['coral'] = [1.000, 0.498, 0.314] 143 colours['dark orange'] = [1.000, 0.549, 0.000] 144 colours['orange'] = [1.000, 0.647, 0.000] 145 colours['pink'] = [1.000, 0.753, 0.796] 146 colours['gold'] = [1.000, 0.843, 0.000] 147 colours['yellow'] = [1.000, 1.000, 0.000] 148 colours['light yellow'] = [1.000, 1.000, 0.878] 149 colours['ivory'] = [1.000, 1.000, 0.941] 150 colours['white'] = [1.000, 1.000, 1.000] 151 152 # Convert to numpy arrays. 153 for key in colours: 154 colours[key] = array(colours[key], float64) 155 156 # Invalid colour string. 157 if name not in colours: 158 raise RelaxInvalidColourError(name) 159 160 # Return the RGB colour array. 161 return colours[name]
162 163 # User function documentation. 164 __molmol_colours_prompt_doc__ = ["Molmol RGB colour arrays", """ 165 The following table is a list of colours used in Molmol and their corresponding RGB colour values ranging from 0 to 1. 166 _______________________________________________________________ 167 | | | | | 168 | Name | Red | Green | Blue | 169 |_______________________________|_________|_________|_________| 170 | | | | | 171 | 'black' | 0.000 | 0.000 | 0.000 | 172 | 'navy' | 0.000 | 0.000 | 0.502 | 173 | 'blue' | 0.000 | 0.000 | 1.000 | 174 | 'dark green' | 0.000 | 0.392 | 0.000 | 175 | 'green' | 0.000 | 1.000 | 0.000 | 176 | 'cyan' | 0.000 | 1.000 | 1.000 | 177 | 'turquoise' | 0.251 | 0.878 | 0.816 | 178 | 'royal blue' | 0.255 | 0.412 | 0.882 | 179 | 'aquamarine' | 0.498 | 1.000 | 0.831 | 180 | 'sky green' | 0.529 | 0.808 | 0.922 | 181 | 'dark violet' | 0.580 | 0.000 | 0.827 | 182 | 'pale green' | 0.596 | 0.984 | 0.596 | 183 | 'purple' | 0.627 | 0.125 | 0.941 | 184 | 'brown' | 0.647 | 0.165 | 0.165 | 185 | 'light blue' | 0.678 | 0.847 | 0.902 | 186 | 'grey' | 0.745 | 0.745 | 0.745 | 187 | 'light grey' | 0.827 | 0.827 | 0.827 | 188 | 'violet' | 0.933 | 0.510 | 0.933 | 189 | 'light coral' | 0.941 | 0.502 | 0.502 | 190 | 'khaki' | 0.941 | 0.902 | 0.549 | 191 | 'beige' | 0.961 | 0.961 | 0.863 | 192 | 'red' | 1.000 | 0.000 | 0.000 | 193 | 'magenta' | 1.000 | 0.000 | 1.000 | 194 | 'deep pink' | 1.000 | 0.078 | 0.576 | 195 | 'orange red' | 1.000 | 0.271 | 0.000 | 196 | 'hot pink' | 1.000 | 0.412 | 0.706 | 197 | 'coral' | 1.000 | 0.498 | 0.314 | 198 | 'dark orange' | 1.000 | 0.549 | 0.000 | 199 | 'orange' | 1.000 | 0.647 | 0.000 | 200 | 'pink' | 1.000 | 0.753 | 0.796 | 201 | 'gold' | 1.000 | 0.843 | 0.000 | 202 | 'yellow' | 1.000 | 1.000 | 0.000 | 203 | 'light yellow' | 1.000 | 1.000 | 0.878 | 204 | 'ivory' | 1.000 | 1.000 | 0.941 | 205 | 'white' | 1.000 | 1.000 | 1.000 | 206 |_______________________________|_________|_________|_________| 207 """] 208 209
210 -def x11_colours(name):
211 """Return the RGB colour array corresponding to the X11 colour name. 212 213 @param name: The X11 colour name, as defined in the /usr/X11R6/lib/X11/rgb.txt file. 214 @type name: str 215 @return: The RGB colour array. 216 @rtype: list of float 217 """ 218 219 # Initialise the dictionary of colours. 220 colours = {} 221 222 # The colours as sorted in the /usr/X11R6/lib/X11/rgb.txt file. 223 colours['snow'] = [255, 250, 250] 224 colours['ghost white'] = [248, 248, 255] 225 colours['white smoke'] = [245, 245, 245] 226 colours['gainsboro'] = [220, 220, 220] 227 colours['floral white'] = [255, 250, 240] 228 colours['old lace'] = [253, 245, 230] 229 colours['linen'] = [250, 240, 230] 230 colours['antique white'] = [250, 235, 215] 231 colours['papaya whip'] = [255, 239, 213] 232 colours['blanched almond'] = [255, 235, 205] 233 colours['bisque'] = [255, 228, 196] 234 colours['peach puff'] = [255, 218, 185] 235 colours['navajo white'] = [255, 222, 173] 236 colours['moccasin'] = [255, 228, 181] 237 colours['cornsilk'] = [255, 248, 220] 238 colours['ivory'] = [255, 255, 240] 239 colours['lemon chiffon'] = [255, 250, 205] 240 colours['seashell'] = [255, 245, 238] 241 colours['honeydew'] = [240, 255, 240] 242 colours['mint cream'] = [245, 255, 250] 243 colours['azure'] = [240, 255, 255] 244 colours['alice blue'] = [240, 248, 255] 245 colours['lavender'] = [230, 230, 250] 246 colours['lavender blush'] = [255, 240, 245] 247 colours['misty rose'] = [255, 228, 225] 248 colours['white'] = [255, 255, 255] 249 colours['black'] = [ 0, 0, 0] 250 colours['dark slate grey'] = [ 47, 79, 79] 251 colours['dim grey'] = [105, 105, 105] 252 colours['slate grey'] = [112, 128, 144] 253 colours['light slate grey'] = [119, 136, 153] 254 colours['grey'] = [190, 190, 190] 255 colours['light grey'] = [211, 211, 211] 256 colours['midnight blue'] = [ 25, 25, 112] 257 colours['navy'] = [ 0, 0, 128] 258 colours['cornflower blue'] = [100, 149, 237] 259 colours['dark slate blue'] = [ 72, 61, 139] 260 colours['slate blue'] = [106, 90, 205] 261 colours['medium slate blue'] = [123, 104, 238] 262 colours['light slate blue'] = [132, 112, 255] 263 colours['medium blue'] = [ 0, 0, 205] 264 colours['royal blue'] = [ 65, 105, 225] 265 colours['blue'] = [ 0, 0, 255] 266 colours['dodger blue'] = [ 30, 144, 255] 267 colours['deep sky blue'] = [ 0, 191, 255] 268 colours['sky blue'] = [135, 206, 235] 269 colours['light sky blue'] = [135, 206, 250] 270 colours['steel blue'] = [ 70, 130, 180] 271 colours['light steel blue'] = [176, 196, 222] 272 colours['light blue'] = [173, 216, 230] 273 colours['powder blue'] = [176, 224, 230] 274 colours['pale turquoise'] = [175, 238, 238] 275 colours['dark turquoise'] = [ 0, 206, 209] 276 colours['medium turquoise'] = [ 72, 209, 204] 277 colours['turquoise'] = [ 64, 224, 208] 278 colours['cyan'] = [ 0, 255, 255] 279 colours['light cyan'] = [224, 255, 255] 280 colours['cadet blue'] = [ 95, 158, 160] 281 colours['medium aquamarine'] = [102, 205, 170] 282 colours['aquamarine'] = [127, 255, 212] 283 colours['dark green'] = [ 0, 100, 0] 284 colours['dark olive green'] = [ 85, 107, 47] 285 colours['dark sea green'] = [143, 188, 143] 286 colours['sea green'] = [ 46, 139, 87] 287 colours['medium sea green'] = [ 60, 179, 113] 288 colours['light sea green'] = [ 32, 178, 170] 289 colours['pale green'] = [152, 251, 152] 290 colours['spring green'] = [ 0, 255, 127] 291 colours['lawn green'] = [124, 252, 0] 292 colours['green'] = [ 0, 255, 0] 293 colours['chartreuse'] = [127, 255, 0] 294 colours['medium spring green'] = [ 0, 250, 154] 295 colours['green yellow'] = [173, 255, 47] 296 colours['lime green'] = [ 50, 205, 50] 297 colours['yellow green'] = [154, 205, 50] 298 colours['forest green'] = [ 34, 139, 34] 299 colours['olive drab'] = [107, 142, 35] 300 colours['dark khaki'] = [189, 183, 107] 301 colours['khaki'] = [240, 230, 140] 302 colours['pale goldenrod'] = [238, 232, 170] 303 colours['light goldenrod yellow'] = [250, 250, 210] 304 colours['light yellow'] = [255, 255, 224] 305 colours['yellow'] = [255, 255, 0] 306 colours['gold'] = [255, 215, 0] 307 colours['light goldenrod'] = [238, 221, 130] 308 colours['goldenrod'] = [218, 165, 32] 309 colours['dark goldenrod'] = [184, 134, 11] 310 colours['rosy brown'] = [188, 143, 143] 311 colours['indian red'] = [205, 92, 92] 312 colours['saddle brown'] = [139, 69, 19] 313 colours['sienna'] = [160, 82, 45] 314 colours['peru'] = [205, 133, 63] 315 colours['burlywood'] = [222, 184, 135] 316 colours['beige'] = [245, 245, 220] 317 colours['wheat'] = [245, 222, 179] 318 colours['sandy brown'] = [244, 164, 96] 319 colours['tan'] = [210, 180, 140] 320 colours['chocolate'] = [210, 105, 30] 321 colours['firebrick'] = [178, 34, 34] 322 colours['brown'] = [165, 42, 42] 323 colours['dark salmon'] = [233, 150, 122] 324 colours['salmon'] = [250, 128, 114] 325 colours['light salmon'] = [255, 160, 122] 326 colours['orange'] = [255, 165, 0] 327 colours['dark orange'] = [255, 140, 0] 328 colours['coral'] = [255, 127, 80] 329 colours['light coral'] = [240, 128, 128] 330 colours['tomato'] = [255, 99, 71] 331 colours['orange red'] = [255, 69, 0] 332 colours['red'] = [255, 0, 0] 333 colours['hot pink'] = [255, 105, 180] 334 colours['deep pink'] = [255, 20, 147] 335 colours['pink'] = [255, 192, 203] 336 colours['light pink'] = [255, 182, 193] 337 colours['pale violet red'] = [219, 112, 147] 338 colours['maroon'] = [176, 48, 96] 339 colours['medium violet red'] = [199, 21, 133] 340 colours['violet red'] = [208, 32, 144] 341 colours['magenta'] = [255, 0, 255] 342 colours['violet'] = [238, 130, 238] 343 colours['plum'] = [221, 160, 221] 344 colours['orchid'] = [218, 112, 214] 345 colours['medium orchid'] = [186, 85, 211] 346 colours['dark orchid'] = [153, 50, 204] 347 colours['dark violet'] = [148, 0, 211] 348 colours['blue violet'] = [138, 43, 226] 349 colours['purple'] = [160, 32, 240] 350 colours['medium purple'] = [147, 112, 219] 351 colours['thistle'] = [216, 191, 216] 352 colours['snow 1'] = [255, 250, 250] 353 colours['snow 2'] = [238, 233, 233] 354 colours['snow 3'] = [205, 201, 201] 355 colours['snow 4'] = [139, 137, 137] 356 colours['seashell 1'] = [255, 245, 238] 357 colours['seashell 2'] = [238, 229, 222] 358 colours['seashell 3'] = [205, 197, 191] 359 colours['seashell 4'] = [139, 134, 130] 360 colours['antique white 1'] = [255, 239, 219] 361 colours['antique white 2'] = [238, 223, 204] 362 colours['antique white 3'] = [205, 192, 176] 363 colours['antique white 4'] = [139, 131, 120] 364 colours['bisque 1'] = [255, 228, 196] 365 colours['bisque 2'] = [238, 213, 183] 366 colours['bisque 3'] = [205, 183, 158] 367 colours['bisque 4'] = [139, 125, 107] 368 colours['peach puff 1'] = [255, 218, 185] 369 colours['peach puff 2'] = [238, 203, 173] 370 colours['peach puff 3'] = [205, 175, 149] 371 colours['peach puff 4'] = [139, 119, 101] 372 colours['navajo white 1'] = [255, 222, 173] 373 colours['navajo white 2'] = [238, 207, 161] 374 colours['navajo white 3'] = [205, 179, 139] 375 colours['navajo white 4'] = [139, 121, 94] 376 colours['lemon chiffon 1'] = [255, 250, 205] 377 colours['lemon chiffon 2'] = [238, 233, 191] 378 colours['lemon chiffon 3'] = [205, 201, 165] 379 colours['lemon chiffon 4'] = [139, 137, 112] 380 colours['cornsilk 1'] = [255, 248, 220] 381 colours['cornsilk 2'] = [238, 232, 205] 382 colours['cornsilk 3'] = [205, 200, 177] 383 colours['cornsilk 4'] = [139, 136, 120] 384 colours['ivory 1'] = [255, 255, 240] 385 colours['ivory 2'] = [238, 238, 224] 386 colours['ivory 3'] = [205, 205, 193] 387 colours['ivory 4'] = [139, 139, 131] 388 colours['honeydew 1'] = [240, 255, 240] 389 colours['honeydew 2'] = [224, 238, 224] 390 colours['honeydew 3'] = [193, 205, 193] 391 colours['honeydew 4'] = [131, 139, 131] 392 colours['lavender blush 1'] = [255, 240, 245] 393 colours['lavender blush 2'] = [238, 224, 229] 394 colours['lavender blush 3'] = [205, 193, 197] 395 colours['lavender blush 4'] = [139, 131, 134] 396 colours['misty rose 1'] = [255, 228, 225] 397 colours['misty rose 2'] = [238, 213, 210] 398 colours['misty rose 3'] = [205, 183, 181] 399 colours['misty rose 4'] = [139, 125, 123] 400 colours['azure 1'] = [240, 255, 255] 401 colours['azure 2'] = [224, 238, 238] 402 colours['azure 3'] = [193, 205, 205] 403 colours['azure 4'] = [131, 139, 139] 404 colours['slate blue 1'] = [131, 111, 255] 405 colours['slate blue 2'] = [122, 103, 238] 406 colours['slate blue 3'] = [105, 89, 205] 407 colours['slate blue 4'] = [ 71, 60, 139] 408 colours['royal blue 1'] = [ 72, 118, 255] 409 colours['royal blue 2'] = [ 67, 110, 238] 410 colours['royal blue 3'] = [ 58, 95, 205] 411 colours['royal blue 4'] = [ 39, 64, 139] 412 colours['blue 1'] = [ 0, 0, 255] 413 colours['blue 2'] = [ 0, 0, 238] 414 colours['blue 3'] = [ 0, 0, 205] 415 colours['blue 4'] = [ 0, 0, 139] 416 colours['dodger blue 1'] = [ 30, 144, 255] 417 colours['dodger blue 2'] = [ 28, 134, 238] 418 colours['dodger blue 3'] = [ 24, 116, 205] 419 colours['dodger blue 4'] = [ 16, 78, 139] 420 colours['steel blue 1'] = [ 99, 184, 255] 421 colours['steel blue 2'] = [ 92, 172, 238] 422 colours['steel blue 3'] = [ 79, 148, 205] 423 colours['steel blue 4'] = [ 54, 100, 139] 424 colours['deep sky blue 1'] = [ 0, 191, 255] 425 colours['deep sky blue 2'] = [ 0, 178, 238] 426 colours['deep sky blue 3'] = [ 0, 154, 205] 427 colours['deep sky blue 4'] = [ 0, 104, 139] 428 colours['sky blue 1'] = [135, 206, 255] 429 colours['sky blue 2'] = [126, 192, 238] 430 colours['sky blue 3'] = [108, 166, 205] 431 colours['sky blue 4'] = [ 74, 112, 139] 432 colours['light sky blue 1'] = [176, 226, 255] 433 colours['light sky blue 2'] = [164, 211, 238] 434 colours['light sky blue 3'] = [141, 182, 205] 435 colours['light sky blue 4'] = [ 96, 123, 139] 436 colours['slate grey 1'] = [198, 226, 255] 437 colours['slate grey 2'] = [185, 211, 238] 438 colours['slate grey 3'] = [159, 182, 205] 439 colours['slate grey 4'] = [108, 123, 139] 440 colours['light steel blue 1'] = [202, 225, 255] 441 colours['light steel blue 2'] = [188, 210, 238] 442 colours['light steel blue 3'] = [162, 181, 205] 443 colours['light steel blue 4'] = [110, 123, 139] 444 colours['light blue 1'] = [191, 239, 255] 445 colours['light blue 2'] = [178, 223, 238] 446 colours['light blue 3'] = [154, 192, 205] 447 colours['light blue 4'] = [104, 131, 139] 448 colours['light cyan 1'] = [224, 255, 255] 449 colours['light cyan 2'] = [209, 238, 238] 450 colours['light cyan 3'] = [180, 205, 205] 451 colours['light cyan 4'] = [122, 139, 139] 452 colours['pale turquoise 1'] = [187, 255, 255] 453 colours['pale turquoise 2'] = [174, 238, 238] 454 colours['pale turquoise 3'] = [150, 205, 205] 455 colours['pale turquoise 4'] = [102, 139, 139] 456 colours['cadet blue 1'] = [152, 245, 255] 457 colours['cadet blue 2'] = [142, 229, 238] 458 colours['cadet blue 3'] = [122, 197, 205] 459 colours['cadet blue 4'] = [ 83, 134, 139] 460 colours['turquoise 1'] = [ 0, 245, 255] 461 colours['turquoise 2'] = [ 0, 229, 238] 462 colours['turquoise 3'] = [ 0, 197, 205] 463 colours['turquoise 4'] = [ 0, 134, 139] 464 colours['cyan 1'] = [ 0, 255, 255] 465 colours['cyan 2'] = [ 0, 238, 238] 466 colours['cyan 3'] = [ 0, 205, 205] 467 colours['cyan 4'] = [ 0, 139, 139] 468 colours['dark slate grey 1'] = [151, 255, 255] 469 colours['dark slate grey 2'] = [141, 238, 238] 470 colours['dark slate grey 3'] = [121, 205, 205] 471 colours['dark slate grey 4'] = [ 82, 139, 139] 472 colours['aquamarine 1'] = [127, 255, 212] 473 colours['aquamarine 2'] = [118, 238, 198] 474 colours['aquamarine 3'] = [102, 205, 170] 475 colours['aquamarine 4'] = [ 69, 139, 116] 476 colours['dark sea green 1'] = [193, 255, 193] 477 colours['dark sea green 2'] = [180, 238, 180] 478 colours['dark sea green 3'] = [155, 205, 155] 479 colours['dark sea green 4'] = [105, 139, 105] 480 colours['sea green 1'] = [ 84, 255, 159] 481 colours['sea green 2'] = [ 78, 238, 148] 482 colours['sea green 3'] = [ 67, 205, 128] 483 colours['sea green 4'] = [ 46, 139, 87] 484 colours['pale green 1'] = [154, 255, 154] 485 colours['pale green 2'] = [144, 238, 144] 486 colours['pale green 3'] = [124, 205, 124] 487 colours['pale green 4'] = [ 84, 139, 84] 488 colours['spring green 1'] = [ 0, 255, 127] 489 colours['spring green 2'] = [ 0, 238, 118] 490 colours['spring green 3'] = [ 0, 205, 102] 491 colours['spring green 4'] = [ 0, 139, 69] 492 colours['green 1'] = [ 0, 255, 0] 493 colours['green 2'] = [ 0, 238, 0] 494 colours['green 3'] = [ 0, 205, 0] 495 colours['green 4'] = [ 0, 139, 0] 496 colours['chartreuse 1'] = [127, 255, 0] 497 colours['chartreuse 2'] = [118, 238, 0] 498 colours['chartreuse 3'] = [102, 205, 0] 499 colours['chartreuse 4'] = [ 69, 139, 0] 500 colours['olive drab 1'] = [192, 255, 62] 501 colours['olive drab 2'] = [179, 238, 58] 502 colours['olive drab 3'] = [154, 205, 50] 503 colours['olive drab 4'] = [105, 139, 34] 504 colours['dark olive green 1'] = [202, 255, 112] 505 colours['dark olive green 2'] = [188, 238, 104] 506 colours['dark olive green 3'] = [162, 205, 90] 507 colours['dark olive green 4'] = [110, 139, 61] 508 colours['khaki 1'] = [255, 246, 143] 509 colours['khaki 2'] = [238, 230, 133] 510 colours['khaki 3'] = [205, 198, 115] 511 colours['khaki 4'] = [139, 134, 78] 512 colours['light goldenrod 1'] = [255, 236, 139] 513 colours['light goldenrod 2'] = [238, 220, 130] 514 colours['light goldenrod 3'] = [205, 190, 112] 515 colours['light goldenrod 4'] = [139, 129, 76] 516 colours['light yellow 1'] = [255, 255, 224] 517 colours['light yellow 2'] = [238, 238, 209] 518 colours['light yellow 3'] = [205, 205, 180] 519 colours['light yellow 4'] = [139, 139, 122] 520 colours['yellow 1'] = [255, 255, 0] 521 colours['yellow 2'] = [238, 238, 0] 522 colours['yellow 3'] = [205, 205, 0] 523 colours['yellow 4'] = [139, 139, 0] 524 colours['gold 1'] = [255, 215, 0] 525 colours['gold 2'] = [238, 201, 0] 526 colours['gold 3'] = [205, 173, 0] 527 colours['gold 4'] = [139, 117, 0] 528 colours['goldenrod 1'] = [255, 193, 37] 529 colours['goldenrod 2'] = [238, 180, 34] 530 colours['goldenrod 3'] = [205, 155, 29] 531 colours['goldenrod 4'] = [139, 105, 20] 532 colours['dark goldenrod 1'] = [255, 185, 15] 533 colours['dark goldenrod 2'] = [238, 173, 14] 534 colours['dark goldenrod 3'] = [205, 149, 12] 535 colours['dark goldenrod 4'] = [139, 101, 8] 536 colours['rosy brown 1'] = [255, 193, 193] 537 colours['rosy brown 2'] = [238, 180, 180] 538 colours['rosy brown 3'] = [205, 155, 155] 539 colours['rosy brown 4'] = [139, 105, 105] 540 colours['indian red 1'] = [255, 106, 106] 541 colours['indian red 2'] = [238, 99, 99] 542 colours['indian red 3'] = [205, 85, 85] 543 colours['indian red 4'] = [139, 58, 58] 544 colours['sienna 1'] = [255, 130, 71] 545 colours['sienna 2'] = [238, 121, 66] 546 colours['sienna 3'] = [205, 104, 57] 547 colours['sienna 4'] = [139, 71, 38] 548 colours['burlywood 1'] = [255, 211, 155] 549 colours['burlywood 2'] = [238, 197, 145] 550 colours['burlywood 3'] = [205, 170, 125] 551 colours['burlywood 4'] = [139, 115, 85] 552 colours['wheat 1'] = [255, 231, 186] 553 colours['wheat 2'] = [238, 216, 174] 554 colours['wheat 3'] = [205, 186, 150] 555 colours['wheat 4'] = [139, 126, 102] 556 colours['tan 1'] = [255, 165, 79] 557 colours['tan 2'] = [238, 154, 73] 558 colours['tan 3'] = [205, 133, 63] 559 colours['tan 4'] = [139, 90, 43] 560 colours['chocolate 1'] = [255, 127, 36] 561 colours['chocolate 2'] = [238, 118, 33] 562 colours['chocolate 3'] = [205, 102, 29] 563 colours['chocolate 4'] = [139, 69, 19] 564 colours['firebrick 1'] = [255, 48, 48] 565 colours['firebrick 2'] = [238, 44, 44] 566 colours['firebrick 3'] = [205, 38, 38] 567 colours['firebrick 4'] = [139, 26, 26] 568 colours['brown 1'] = [255, 64, 64] 569 colours['brown 2'] = [238, 59, 59] 570 colours['brown 3'] = [205, 51, 51] 571 colours['brown 4'] = [139, 35, 35] 572 colours['salmon 1'] = [255, 140, 105] 573 colours['salmon 2'] = [238, 130, 98] 574 colours['salmon 3'] = [205, 112, 84] 575 colours['salmon 4'] = [139, 76, 57] 576 colours['light salmon 1'] = [255, 160, 122] 577 colours['light salmon 2'] = [238, 149, 114] 578 colours['light salmon 3'] = [205, 129, 98] 579 colours['light salmon 4'] = [139, 87, 66] 580 colours['orange 1'] = [255, 165, 0] 581 colours['orange 2'] = [238, 154, 0] 582 colours['orange 3'] = [205, 133, 0] 583 colours['orange 4'] = [139, 90, 0] 584 colours['dark orange 1'] = [255, 127, 0] 585 colours['dark orange 2'] = [238, 118, 0] 586 colours['dark orange 3'] = [205, 102, 0] 587 colours['dark orange 4'] = [139, 69, 0] 588 colours['coral 1'] = [255, 114, 86] 589 colours['coral 2'] = [238, 106, 80] 590 colours['coral 3'] = [205, 91, 69] 591 colours['coral 4'] = [139, 62, 47] 592 colours['tomato 1'] = [255, 99, 71] 593 colours['tomato 2'] = [238, 92, 66] 594 colours['tomato 3'] = [205, 79, 57] 595 colours['tomato 4'] = [139, 54, 38] 596 colours['orange red 1'] = [255, 69, 0] 597 colours['orange red 2'] = [238, 64, 0] 598 colours['orange red 3'] = [205, 55, 0] 599 colours['orange red 4'] = [139, 37, 0] 600 colours['red 1'] = [255, 0, 0] 601 colours['red 2'] = [238, 0, 0] 602 colours['red 3'] = [205, 0, 0] 603 colours['red 4'] = [139, 0, 0] 604 colours['deep pink 1'] = [255, 20, 147] 605 colours['deep pink 2'] = [238, 18, 137] 606 colours['deep pink 3'] = [205, 16, 118] 607 colours['deep pink 4'] = [139, 10, 80] 608 colours['hot pink 1'] = [255, 110, 180] 609 colours['hot pink 2'] = [238, 106, 167] 610 colours['hot pink 3'] = [205, 96, 144] 611 colours['hot pink 4'] = [139, 58, 98] 612 colours['pink 1'] = [255, 181, 197] 613 colours['pink 2'] = [238, 169, 184] 614 colours['pink 3'] = [205, 145, 158] 615 colours['pink 4'] = [139, 99, 108] 616 colours['light pink 1'] = [255, 174, 185] 617 colours['light pink 2'] = [238, 162, 173] 618 colours['light pink 3'] = [205, 140, 149] 619 colours['light pink 4'] = [139, 95, 101] 620 colours['pale violet red 1'] = [255, 130, 171] 621 colours['pale violet red 2'] = [238, 121, 159] 622 colours['pale violet red 3'] = [205, 104, 137] 623 colours['pale violet red 4'] = [139, 71, 93] 624 colours['maroon 1'] = [255, 52, 179] 625 colours['maroon 2'] = [238, 48, 167] 626 colours['maroon 3'] = [205, 41, 144] 627 colours['maroon 4'] = [139, 28, 98] 628 colours['violet red 1'] = [255, 62, 150] 629 colours['violet red 2'] = [238, 58, 140] 630 colours['violet red 3'] = [205, 50, 120] 631 colours['violet red 4'] = [139, 34, 82] 632 colours['magenta 1'] = [255, 0, 255] 633 colours['magenta 2'] = [238, 0, 238] 634 colours['magenta 3'] = [205, 0, 205] 635 colours['magenta 4'] = [139, 0, 139] 636 colours['orchid 1'] = [255, 131, 250] 637 colours['orchid 2'] = [238, 122, 233] 638 colours['orchid 3'] = [205, 105, 201] 639 colours['orchid 4'] = [139, 71, 137] 640 colours['plum 1'] = [255, 187, 255] 641 colours['plum 2'] = [238, 174, 238] 642 colours['plum 3'] = [205, 150, 205] 643 colours['plum 4'] = [139, 102, 139] 644 colours['medium orchid 1'] = [224, 102, 255] 645 colours['medium orchid 2'] = [209, 95, 238] 646 colours['medium orchid 3'] = [180, 82, 205] 647 colours['medium orchid 4'] = [122, 55, 139] 648 colours['dark orchid 1'] = [191, 62, 255] 649 colours['dark orchid 2'] = [178, 58, 238] 650 colours['dark orchid 3'] = [154, 50, 205] 651 colours['dark orchid 4'] = [104, 34, 139] 652 colours['purple 1'] = [155, 48, 255] 653 colours['purple 2'] = [145, 44, 238] 654 colours['purple 3'] = [125, 38, 205] 655 colours['purple 4'] = [ 85, 26, 139] 656 colours['medium purple 1'] = [171, 130, 255] 657 colours['medium purple 2'] = [159, 121, 238] 658 colours['medium purple 3'] = [137, 104, 205] 659 colours['medium purple 4'] = [ 93, 71, 139] 660 colours['thistle 1'] = [255, 225, 255] 661 colours['thistle 2'] = [238, 210, 238] 662 colours['thistle 3'] = [205, 181, 205] 663 colours['thistle 4'] = [139, 123, 139] 664 colours['grey 0'] = [ 0, 0, 0] 665 colours['grey 1'] = [ 3, 3, 3] 666 colours['grey 2'] = [ 5, 5, 5] 667 colours['grey 3'] = [ 8, 8, 8] 668 colours['grey 4'] = [ 10, 10, 10] 669 colours['grey 5'] = [ 13, 13, 13] 670 colours['grey 6'] = [ 15, 15, 15] 671 colours['grey 7'] = [ 18, 18, 18] 672 colours['grey 8'] = [ 20, 20, 20] 673 colours['grey 9'] = [ 23, 23, 23] 674 colours['grey 10'] = [ 26, 26, 26] 675 colours['grey 11'] = [ 28, 28, 28] 676 colours['grey 12'] = [ 31, 31, 31] 677 colours['grey 13'] = [ 33, 33, 33] 678 colours['grey 14'] = [ 36, 36, 36] 679 colours['grey 15'] = [ 38, 38, 38] 680 colours['grey 16'] = [ 41, 41, 41] 681 colours['grey 17'] = [ 43, 43, 43] 682 colours['grey 18'] = [ 46, 46, 46] 683 colours['grey 19'] = [ 48, 48, 48] 684 colours['grey 20'] = [ 51, 51, 51] 685 colours['grey 21'] = [ 54, 54, 54] 686 colours['grey 22'] = [ 56, 56, 56] 687 colours['grey 23'] = [ 59, 59, 59] 688 colours['grey 24'] = [ 61, 61, 61] 689 colours['grey 25'] = [ 64, 64, 64] 690 colours['grey 26'] = [ 66, 66, 66] 691 colours['grey 27'] = [ 69, 69, 69] 692 colours['grey 28'] = [ 71, 71, 71] 693 colours['grey 29'] = [ 74, 74, 74] 694 colours['grey 30'] = [ 77, 77, 77] 695 colours['grey 31'] = [ 79, 79, 79] 696 colours['grey 32'] = [ 82, 82, 82] 697 colours['grey 33'] = [ 84, 84, 84] 698 colours['grey 34'] = [ 87, 87, 87] 699 colours['grey 35'] = [ 89, 89, 89] 700 colours['grey 36'] = [ 92, 92, 92] 701 colours['grey 37'] = [ 94, 94, 94] 702 colours['grey 38'] = [ 97, 97, 97] 703 colours['grey 39'] = [ 99, 99, 99] 704 colours['grey 40'] = [102, 102, 102] 705 colours['grey 41'] = [105, 105, 105] 706 colours['grey 42'] = [107, 107, 107] 707 colours['grey 43'] = [110, 110, 110] 708 colours['grey 44'] = [112, 112, 112] 709 colours['grey 45'] = [115, 115, 115] 710 colours['grey 46'] = [117, 117, 117] 711 colours['grey 47'] = [120, 120, 120] 712 colours['grey 48'] = [122, 122, 122] 713 colours['grey 49'] = [125, 125, 125] 714 colours['grey 50'] = [127, 127, 127] 715 colours['grey 51'] = [130, 130, 130] 716 colours['grey 52'] = [133, 133, 133] 717 colours['grey 53'] = [135, 135, 135] 718 colours['grey 54'] = [138, 138, 138] 719 colours['grey 55'] = [140, 140, 140] 720 colours['grey 56'] = [143, 143, 143] 721 colours['grey 57'] = [145, 145, 145] 722 colours['grey 58'] = [148, 148, 148] 723 colours['grey 59'] = [150, 150, 150] 724 colours['grey 60'] = [153, 153, 153] 725 colours['grey 61'] = [156, 156, 156] 726 colours['grey 62'] = [158, 158, 158] 727 colours['grey 63'] = [161, 161, 161] 728 colours['grey 64'] = [163, 163, 163] 729 colours['grey 65'] = [166, 166, 166] 730 colours['grey 66'] = [168, 168, 168] 731 colours['grey 67'] = [171, 171, 171] 732 colours['grey 68'] = [173, 173, 173] 733 colours['grey 69'] = [176, 176, 176] 734 colours['grey 70'] = [179, 179, 179] 735 colours['grey 71'] = [181, 181, 181] 736 colours['grey 72'] = [184, 184, 184] 737 colours['grey 73'] = [186, 186, 186] 738 colours['grey 74'] = [189, 189, 189] 739 colours['grey 75'] = [191, 191, 191] 740 colours['grey 76'] = [194, 194, 194] 741 colours['grey 77'] = [196, 196, 196] 742 colours['grey 78'] = [199, 199, 199] 743 colours['grey 79'] = [201, 201, 201] 744 colours['grey 80'] = [204, 204, 204] 745 colours['grey 81'] = [207, 207, 207] 746 colours['grey 82'] = [209, 209, 209] 747 colours['grey 83'] = [212, 212, 212] 748 colours['grey 84'] = [214, 214, 214] 749 colours['grey 85'] = [217, 217, 217] 750 colours['grey 86'] = [219, 219, 219] 751 colours['grey 87'] = [222, 222, 222] 752 colours['grey 88'] = [224, 224, 224] 753 colours['grey 89'] = [227, 227, 227] 754 colours['grey 90'] = [229, 229, 229] 755 colours['grey 91'] = [232, 232, 232] 756 colours['grey 92'] = [235, 235, 235] 757 colours['grey 93'] = [237, 237, 237] 758 colours['grey 94'] = [240, 240, 240] 759 colours['grey 95'] = [242, 242, 242] 760 colours['grey 96'] = [245, 245, 245] 761 colours['grey 97'] = [247, 247, 247] 762 colours['grey 98'] = [250, 250, 250] 763 colours['grey 99'] = [252, 252, 252] 764 colours['grey 100'] = [255, 255, 255] 765 colours['dark grey'] = [169, 169, 169] 766 colours['dark blue'] = [ 0, 0, 139] 767 colours['dark cyan'] = [ 0, 139, 139] 768 colours['dark magenta'] = [139, 0, 139] 769 colours['dark red'] = [139, 0, 0] 770 colours['light green'] = [144, 238, 144] 771 772 # Invalid colour string. 773 if name not in colours: 774 raise RelaxInvalidColourError(name) 775 776 # Return the RGB colour array (in numpy format and between 0 and 1). 777 return array(colours[name], float64) / 255.
778 779 # User function documentation. 780 __x11_colours_prompt_doc__ = ["X11 RGB colour arrays", """ 781 The following table is the list of X11 colour names and their corresponding RGB colour values ranging from 0 to 255. 782 _______________________________________________________________ 783 | | | | | 784 | Name | Red | Green | Blue | 785 |_______________________________|_________|_________|_________| 786 | | | | | 787 | snow | 255 | 250 | 250 | 788 | ghost white | 248 | 248 | 255 | 789 | white smoke | 245 | 245 | 245 | 790 | gainsboro | 220 | 220 | 220 | 791 | floral white | 255 | 250 | 240 | 792 | old lace | 253 | 245 | 230 | 793 | linen | 250 | 240 | 230 | 794 | antique white | 250 | 235 | 215 | 795 | papaya whip | 255 | 239 | 213 | 796 | blanched almond | 255 | 235 | 205 | 797 | bisque | 255 | 228 | 196 | 798 | peach puff | 255 | 218 | 185 | 799 | navajo white | 255 | 222 | 173 | 800 | moccasin | 255 | 228 | 181 | 801 | cornsilk | 255 | 248 | 220 | 802 | ivory | 255 | 255 | 240 | 803 | lemon chiffon | 255 | 250 | 205 | 804 | seashell | 255 | 245 | 238 | 805 | honeydew | 240 | 255 | 240 | 806 | mint cream | 245 | 255 | 250 | 807 | azure | 240 | 255 | 255 | 808 | alice blue | 240 | 248 | 255 | 809 | lavender | 230 | 230 | 250 | 810 | lavender blush | 255 | 240 | 245 | 811 | misty rose | 255 | 228 | 225 | 812 | white | 255 | 255 | 255 | 813 | black | 0 | 0 | 0 | 814 | dark slate grey | 47 | 79 | 79 | 815 | dim grey | 105 | 105 | 105 | 816 | slate grey | 112 | 128 | 144 | 817 | light slate grey | 119 | 136 | 153 | 818 | grey | 190 | 190 | 190 | 819 | light grey | 211 | 211 | 211 | 820 | midnight blue | 25 | 25 | 112 | 821 | navy | 0 | 0 | 128 | 822 | cornflower blue | 100 | 149 | 237 | 823 | dark slate blue | 72 | 61 | 139 | 824 | slate blue | 106 | 90 | 205 | 825 | medium slate blue | 123 | 104 | 238 | 826 | light slate blue | 132 | 112 | 255 | 827 | medium blue | 0 | 0 | 205 | 828 | royal blue | 65 | 105 | 225 | 829 | blue | 0 | 0 | 255 | 830 | dodger blue | 30 | 144 | 255 | 831 | deep sky blue | 0 | 191 | 255 | 832 | sky blue | 135 | 206 | 235 | 833 | light sky blue | 135 | 206 | 250 | 834 | steel blue | 70 | 130 | 180 | 835 | light steel blue | 176 | 196 | 222 | 836 | light blue | 173 | 216 | 230 | 837 | powder blue | 176 | 224 | 230 | 838 | pale turquoise | 175 | 238 | 238 | 839 | dark turquoise | 0 | 206 | 209 | 840 | medium turquoise | 72 | 209 | 204 | 841 | turquoise | 64 | 224 | 208 | 842 | cyan | 0 | 255 | 255 | 843 | light cyan | 224 | 255 | 255 | 844 | cadet blue | 95 | 158 | 160 | 845 | medium aquamarine | 102 | 205 | 170 | 846 | aquamarine | 127 | 255 | 212 | 847 | dark green | 0 | 100 | 0 | 848 | dark olive green | 85 | 107 | 47 | 849 | dark sea green | 143 | 188 | 143 | 850 | sea green | 46 | 139 | 87 | 851 | medium sea green | 60 | 179 | 113 | 852 | light sea green | 32 | 178 | 170 | 853 | pale green | 152 | 251 | 152 | 854 | spring green | 0 | 255 | 127 | 855 | lawn green | 124 | 252 | 0 | 856 | green | 0 | 255 | 0 | 857 | chartreuse | 127 | 255 | 0 | 858 | medium spring green | 0 | 250 | 154 | 859 | green yellow | 173 | 255 | 47 | 860 | lime green | 50 | 205 | 50 | 861 | yellow green | 154 | 205 | 50 | 862 | forest green | 34 | 139 | 34 | 863 | olive drab | 107 | 142 | 35 | 864 | dark khaki | 189 | 183 | 107 | 865 | khaki | 240 | 230 | 140 | 866 | pale goldenrod | 238 | 232 | 170 | 867 | light goldenrod yellow | 250 | 250 | 210 | 868 | light yellow | 255 | 255 | 224 | 869 | yellow | 255 | 255 | 0 | 870 | gold | 255 | 215 | 0 | 871 | light goldenrod | 238 | 221 | 130 | 872 | goldenrod | 218 | 165 | 32 | 873 | dark goldenrod | 184 | 134 | 11 | 874 | rosy brown | 188 | 143 | 143 | 875 | indian red | 205 | 92 | 92 | 876 | saddle brown | 139 | 69 | 19 | 877 | sienna | 160 | 82 | 45 | 878 | peru | 205 | 133 | 63 | 879 | burlywood | 222 | 184 | 135 | 880 | beige | 245 | 245 | 220 | 881 | wheat | 245 | 222 | 179 | 882 | sandy brown | 244 | 164 | 96 | 883 | tan | 210 | 180 | 140 | 884 | chocolate | 210 | 105 | 30 | 885 | firebrick | 178 | 34 | 34 | 886 | brown | 165 | 42 | 42 | 887 | dark salmon | 233 | 150 | 122 | 888 | salmon | 250 | 128 | 114 | 889 | light salmon | 255 | 160 | 122 | 890 | orange | 255 | 165 | 0 | 891 | dark orange | 255 | 140 | 0 | 892 | coral | 255 | 127 | 80 | 893 | light coral | 240 | 128 | 128 | 894 | tomato | 255 | 99 | 71 | 895 | orange red | 255 | 69 | 0 | 896 | red | 255 | 0 | 0 | 897 | hot pink | 255 | 105 | 180 | 898 | deep pink | 255 | 20 | 147 | 899 | pink | 255 | 192 | 203 | 900 | light pink | 255 | 182 | 193 | 901 | pale violet red | 219 | 112 | 147 | 902 | maroon | 176 | 48 | 96 | 903 | medium violet red | 199 | 21 | 133 | 904 | violet red | 208 | 32 | 144 | 905 | magenta | 255 | 0 | 255 | 906 | violet | 238 | 130 | 238 | 907 | plum | 221 | 160 | 221 | 908 | orchid | 218 | 112 | 214 | 909 | medium orchid | 186 | 85 | 211 | 910 | dark orchid | 153 | 50 | 204 | 911 | dark violet | 148 | 0 | 211 | 912 | blue violet | 138 | 43 | 226 | 913 | purple | 160 | 32 | 240 | 914 | medium purple | 147 | 112 | 219 | 915 | thistle | 216 | 191 | 216 | 916 | snow 1 | 255 | 250 | 250 | 917 | snow 2 | 238 | 233 | 233 | 918 | snow 3 | 205 | 201 | 201 | 919 | snow 4 | 139 | 137 | 137 | 920 | seashell 1 | 255 | 245 | 238 | 921 | seashell 2 | 238 | 229 | 222 | 922 | seashell 3 | 205 | 197 | 191 | 923 | seashell 4 | 139 | 134 | 130 | 924 | antique white 1 | 255 | 239 | 219 | 925 | antique white 2 | 238 | 223 | 204 | 926 | antique white 3 | 205 | 192 | 176 | 927 | antique white 4 | 139 | 131 | 120 | 928 | bisque 1 | 255 | 228 | 196 | 929 | bisque 2 | 238 | 213 | 183 | 930 | bisque 3 | 205 | 183 | 158 | 931 | bisque 4 | 139 | 125 | 107 | 932 | peach puff 1 | 255 | 218 | 185 | 933 | peach puff 2 | 238 | 203 | 173 | 934 | peach puff 3 | 205 | 175 | 149 | 935 | peach puff 4 | 139 | 119 | 101 | 936 | navajo white 1 | 255 | 222 | 173 | 937 | navajo white 2 | 238 | 207 | 161 | 938 | navajo white 3 | 205 | 179 | 139 | 939 | navajo white 4 | 139 | 121 | 94 | 940 | lemon chiffon 1 | 255 | 250 | 205 | 941 | lemon chiffon 2 | 238 | 233 | 191 | 942 | lemon chiffon 3 | 205 | 201 | 165 | 943 | lemon chiffon 4 | 139 | 137 | 112 | 944 | cornsilk 1 | 255 | 248 | 220 | 945 | cornsilk 2 | 238 | 232 | 205 | 946 | cornsilk 3 | 205 | 200 | 177 | 947 | cornsilk 4 | 139 | 136 | 120 | 948 | ivory 1 | 255 | 255 | 240 | 949 | ivory 2 | 238 | 238 | 224 | 950 | ivory 3 | 205 | 205 | 193 | 951 | ivory 4 | 139 | 139 | 131 | 952 | honeydew 1 | 240 | 255 | 240 | 953 | honeydew 2 | 224 | 238 | 224 | 954 | honeydew 3 | 193 | 205 | 193 | 955 | honeydew 4 | 131 | 139 | 131 | 956 | lavender blush 1 | 255 | 240 | 245 | 957 | lavender blush 2 | 238 | 224 | 229 | 958 | lavender blush 3 | 205 | 193 | 197 | 959 | lavender blush 4 | 139 | 131 | 134 | 960 | misty rose 1 | 255 | 228 | 225 | 961 | misty rose 2 | 238 | 213 | 210 | 962 | misty rose 3 | 205 | 183 | 181 | 963 | misty rose 4 | 139 | 125 | 123 | 964 | azure 1 | 240 | 255 | 255 | 965 | azure 2 | 224 | 238 | 238 | 966 | azure 3 | 193 | 205 | 205 | 967 | azure 4 | 131 | 139 | 139 | 968 | slate blue 1 | 131 | 111 | 255 | 969 | slate blue 2 | 122 | 103 | 238 | 970 | slate blue 3 | 105 | 89 | 205 | 971 | slate blue 4 | 71 | 60 | 139 | 972 | royal blue 1 | 72 | 118 | 255 | 973 | royal blue 2 | 67 | 110 | 238 | 974 | royal blue 3 | 58 | 95 | 205 | 975 | royal blue 4 | 39 | 64 | 139 | 976 | blue 1 | 0 | 0 | 255 | 977 | blue 2 | 0 | 0 | 238 | 978 | blue 3 | 0 | 0 | 205 | 979 | blue 4 | 0 | 0 | 139 | 980 | dodger blue 1 | 30 | 144 | 255 | 981 | dodger blue 2 | 28 | 134 | 238 | 982 | dodger blue 3 | 24 | 116 | 205 | 983 | dodger blue 4 | 16 | 78 | 139 | 984 | steel blue 1 | 99 | 184 | 255 | 985 | steel blue 2 | 92 | 172 | 238 | 986 | steel blue 3 | 79 | 148 | 205 | 987 | steel blue 4 | 54 | 100 | 139 | 988 | deep sky blue 1 | 0 | 191 | 255 | 989 | deep sky blue 2 | 0 | 178 | 238 | 990 | deep sky blue 3 | 0 | 154 | 205 | 991 | deep sky blue 4 | 0 | 104 | 139 | 992 | sky blue 1 | 135 | 206 | 255 | 993 | sky blue 2 | 126 | 192 | 238 | 994 | sky blue 3 | 108 | 166 | 205 | 995 | sky blue 4 | 74 | 112 | 139 | 996 | light sky blue 1 | 176 | 226 | 255 | 997 | light sky blue 2 | 164 | 211 | 238 | 998 | light sky blue 3 | 141 | 182 | 205 | 999 | light sky blue 4 | 96 | 123 | 139 | 1000 | slate grey 1 | 198 | 226 | 255 | 1001 | slate grey 2 | 185 | 211 | 238 | 1002 | slate grey 3 | 159 | 182 | 205 | 1003 | slate grey 4 | 108 | 123 | 139 | 1004 | light steel blue 1 | 202 | 225 | 255 | 1005 | light steel blue 2 | 188 | 210 | 238 | 1006 | light steel blue 3 | 162 | 181 | 205 | 1007 | light steel blue 4 | 110 | 123 | 139 | 1008 | light blue 1 | 191 | 239 | 255 | 1009 | light blue 2 | 178 | 223 | 238 | 1010 | light blue 3 | 154 | 192 | 205 | 1011 | light blue 4 | 104 | 131 | 139 | 1012 | light cyan 1 | 224 | 255 | 255 | 1013 | light cyan 2 | 209 | 238 | 238 | 1014 | light cyan 3 | 180 | 205 | 205 | 1015 | light cyan 4 | 122 | 139 | 139 | 1016 | pale turquoise 1 | 187 | 255 | 255 | 1017 | pale turquoise 2 | 174 | 238 | 238 | 1018 | pale turquoise 3 | 150 | 205 | 205 | 1019 | pale turquoise 4 | 102 | 139 | 139 | 1020 | cadet blue 1 | 152 | 245 | 255 | 1021 | cadet blue 2 | 142 | 229 | 238 | 1022 | cadet blue 3 | 122 | 197 | 205 | 1023 | cadet blue 4 | 83 | 134 | 139 | 1024 | turquoise 1 | 0 | 245 | 255 | 1025 | turquoise 2 | 0 | 229 | 238 | 1026 | turquoise 3 | 0 | 197 | 205 | 1027 | turquoise 4 | 0 | 134 | 139 | 1028 | cyan 1 | 0 | 255 | 255 | 1029 | cyan 2 | 0 | 238 | 238 | 1030 | cyan 3 | 0 | 205 | 205 | 1031 | cyan 4 | 0 | 139 | 139 | 1032 | dark slate grey 1 | 151 | 255 | 255 | 1033 | dark slate grey 2 | 141 | 238 | 238 | 1034 | dark slate grey 3 | 121 | 205 | 205 | 1035 | dark slate grey 4 | 82 | 139 | 139 | 1036 | aquamarine 1 | 127 | 255 | 212 | 1037 | aquamarine 2 | 118 | 238 | 198 | 1038 | aquamarine 3 | 102 | 205 | 170 | 1039 | aquamarine 4 | 69 | 139 | 116 | 1040 | dark sea green 1 | 193 | 255 | 193 | 1041 | dark sea green 2 | 180 | 238 | 180 | 1042 | dark sea green 3 | 155 | 205 | 155 | 1043 | dark sea green 4 | 105 | 139 | 105 | 1044 | sea green 1 | 84 | 255 | 159 | 1045 | sea green 2 | 78 | 238 | 148 | 1046 | sea green 3 | 67 | 205 | 128 | 1047 | sea green 4 | 46 | 139 | 87 | 1048 | pale green 1 | 154 | 255 | 154 | 1049 | pale green 2 | 144 | 238 | 144 | 1050 | pale green 3 | 124 | 205 | 124 | 1051 | pale green 4 | 84 | 139 | 84 | 1052 | spring green 1 | 0 | 255 | 127 | 1053 | spring green 2 | 0 | 238 | 118 | 1054 | spring green 3 | 0 | 205 | 102 | 1055 | spring green 4 | 0 | 139 | 69 | 1056 | green 1 | 0 | 255 | 0 | 1057 | green 2 | 0 | 238 | 0 | 1058 | green 3 | 0 | 205 | 0 | 1059 | green 4 | 0 | 139 | 0 | 1060 | chartreuse 1 | 127 | 255 | 0 | 1061 | chartreuse 2 | 118 | 238 | 0 | 1062 | chartreuse 3 | 102 | 205 | 0 | 1063 | chartreuse 4 | 69 | 139 | 0 | 1064 | olive drab 1 | 192 | 255 | 62 | 1065 | olive drab 2 | 179 | 238 | 58 | 1066 | olive drab 3 | 154 | 205 | 50 | 1067 | olive drab 4 | 105 | 139 | 34 | 1068 | dark olive green 1 | 202 | 255 | 112 | 1069 | dark olive green 2 | 188 | 238 | 104 | 1070 | dark olive green 3 | 162 | 205 | 90 | 1071 | dark olive green 4 | 110 | 139 | 61 | 1072 | khaki 1 | 255 | 246 | 143 | 1073 | khaki 2 | 238 | 230 | 133 | 1074 | khaki 3 | 205 | 198 | 115 | 1075 | khaki 4 | 139 | 134 | 78 | 1076 | light goldenrod 1 | 255 | 236 | 139 | 1077 | light goldenrod 2 | 238 | 220 | 130 | 1078 | light goldenrod 3 | 205 | 190 | 112 | 1079 | light goldenrod 4 | 139 | 129 | 76 | 1080 | light yellow 1 | 255 | 255 | 224 | 1081 | light yellow 2 | 238 | 238 | 209 | 1082 | light yellow 3 | 205 | 205 | 180 | 1083 | light yellow 4 | 139 | 139 | 122 | 1084 | yellow 1 | 255 | 255 | 0 | 1085 | yellow 2 | 238 | 238 | 0 | 1086 | yellow 3 | 205 | 205 | 0 | 1087 | yellow 4 | 139 | 139 | 0 | 1088 | gold 1 | 255 | 215 | 0 | 1089 | gold 2 | 238 | 201 | 0 | 1090 | gold 3 | 205 | 173 | 0 | 1091 | gold 4 | 139 | 117 | 0 | 1092 | goldenrod 1 | 255 | 193 | 37 | 1093 | goldenrod 2 | 238 | 180 | 34 | 1094 | goldenrod 3 | 205 | 155 | 29 | 1095 | goldenrod 4 | 139 | 105 | 20 | 1096 | dark goldenrod 1 | 255 | 185 | 15 | 1097 | dark goldenrod 2 | 238 | 173 | 14 | 1098 | dark goldenrod 3 | 205 | 149 | 12 | 1099 | dark goldenrod 4 | 139 | 101 | 8 | 1100 | rosy brown 1 | 255 | 193 | 193 | 1101 | rosy brown 2 | 238 | 180 | 180 | 1102 | rosy brown 3 | 205 | 155 | 155 | 1103 | rosy brown 4 | 139 | 105 | 105 | 1104 | indian red 1 | 255 | 106 | 106 | 1105 | indian red 2 | 238 | 99 | 99 | 1106 | indian red 3 | 205 | 85 | 85 | 1107 | indian red 4 | 139 | 58 | 58 | 1108 | sienna 1 | 255 | 130 | 71 | 1109 | sienna 2 | 238 | 121 | 66 | 1110 | sienna 3 | 205 | 104 | 57 | 1111 | sienna 4 | 139 | 71 | 38 | 1112 | burlywood 1 | 255 | 211 | 155 | 1113 | burlywood 2 | 238 | 197 | 145 | 1114 | burlywood 3 | 205 | 170 | 125 | 1115 | burlywood 4 | 139 | 115 | 85 | 1116 | wheat 1 | 255 | 231 | 186 | 1117 | wheat 2 | 238 | 216 | 174 | 1118 | wheat 3 | 205 | 186 | 150 | 1119 | wheat 4 | 139 | 126 | 102 | 1120 | tan 1 | 255 | 165 | 79 | 1121 | tan 2 | 238 | 154 | 73 | 1122 | tan 3 | 205 | 133 | 63 | 1123 | tan 4 | 139 | 90 | 43 | 1124 | chocolate 1 | 255 | 127 | 36 | 1125 | chocolate 2 | 238 | 118 | 33 | 1126 | chocolate 3 | 205 | 102 | 29 | 1127 | chocolate 4 | 139 | 69 | 19 | 1128 | firebrick 1 | 255 | 48 | 48 | 1129 | firebrick 2 | 238 | 44 | 44 | 1130 | firebrick 3 | 205 | 38 | 38 | 1131 | firebrick 4 | 139 | 26 | 26 | 1132 | brown 1 | 255 | 64 | 64 | 1133 | brown 2 | 238 | 59 | 59 | 1134 | brown 3 | 205 | 51 | 51 | 1135 | brown 4 | 139 | 35 | 35 | 1136 | salmon 1 | 255 | 140 | 105 | 1137 | salmon 2 | 238 | 130 | 98 | 1138 | salmon 3 | 205 | 112 | 84 | 1139 | salmon 4 | 139 | 76 | 57 | 1140 | light salmon 1 | 255 | 160 | 122 | 1141 | light salmon 2 | 238 | 149 | 114 | 1142 | light salmon 3 | 205 | 129 | 98 | 1143 | light salmon 4 | 139 | 87 | 66 | 1144 | orange 1 | 255 | 165 | 0 | 1145 | orange 2 | 238 | 154 | 0 | 1146 | orange 3 | 205 | 133 | 0 | 1147 | orange 4 | 139 | 90 | 0 | 1148 | dark orange 1 | 255 | 127 | 0 | 1149 | dark orange 2 | 238 | 118 | 0 | 1150 | dark orange 3 | 205 | 102 | 0 | 1151 | dark orange 4 | 139 | 69 | 0 | 1152 | coral 1 | 255 | 114 | 86 | 1153 | coral 2 | 238 | 106 | 80 | 1154 | coral 3 | 205 | 91 | 69 | 1155 | coral 4 | 139 | 62 | 47 | 1156 | tomato 1 | 255 | 99 | 71 | 1157 | tomato 2 | 238 | 92 | 66 | 1158 | tomato 3 | 205 | 79 | 57 | 1159 | tomato 4 | 139 | 54 | 38 | 1160 | orange red 1 | 255 | 69 | 0 | 1161 | orange red 2 | 238 | 64 | 0 | 1162 | orange red 3 | 205 | 55 | 0 | 1163 | orange red 4 | 139 | 37 | 0 | 1164 | red 1 | 255 | 0 | 0 | 1165 | red 2 | 238 | 0 | 0 | 1166 | red 3 | 205 | 0 | 0 | 1167 | red 4 | 139 | 0 | 0 | 1168 | deep pink 1 | 255 | 20 | 147 | 1169 | deep pink 2 | 238 | 18 | 137 | 1170 | deep pink 3 | 205 | 16 | 118 | 1171 | deep pink 4 | 139 | 10 | 80 | 1172 | hot pink 1 | 255 | 110 | 180 | 1173 | hot pink 2 | 238 | 106 | 167 | 1174 | hot pink 3 | 205 | 96 | 144 | 1175 | hot pink 4 | 139 | 58 | 98 | 1176 | pink 1 | 255 | 181 | 197 | 1177 | pink 2 | 238 | 169 | 184 | 1178 | pink 3 | 205 | 145 | 158 | 1179 | pink 4 | 139 | 99 | 108 | 1180 | light pink 1 | 255 | 174 | 185 | 1181 | light pink 2 | 238 | 162 | 173 | 1182 | light pink 3 | 205 | 140 | 149 | 1183 | light pink 4 | 139 | 95 | 101 | 1184 | pale violet red 1 | 255 | 130 | 171 | 1185 | pale violet red 2 | 238 | 121 | 159 | 1186 | pale violet red 3 | 205 | 104 | 137 | 1187 | pale violet red 4 | 139 | 71 | 93 | 1188 | maroon 1 | 255 | 52 | 179 | 1189 | maroon 2 | 238 | 48 | 167 | 1190 | maroon 3 | 205 | 41 | 144 | 1191 | maroon 4 | 139 | 28 | 98 | 1192 | violet red 1 | 255 | 62 | 150 | 1193 | violet red 2 | 238 | 58 | 140 | 1194 | violet red 3 | 205 | 50 | 120 | 1195 | violet red 4 | 139 | 34 | 82 | 1196 | magenta 1 | 255 | 0 | 255 | 1197 | magenta 2 | 238 | 0 | 238 | 1198 | magenta 3 | 205 | 0 | 205 | 1199 | magenta 4 | 139 | 0 | 139 | 1200 | orchid 1 | 255 | 131 | 250 | 1201 | orchid 2 | 238 | 122 | 233 | 1202 | orchid 3 | 205 | 105 | 201 | 1203 | orchid 4 | 139 | 71 | 137 | 1204 | plum 1 | 255 | 187 | 255 | 1205 | plum 2 | 238 | 174 | 238 | 1206 | plum 3 | 205 | 150 | 205 | 1207 | plum 4 | 139 | 102 | 139 | 1208 | medium orchid 1 | 224 | 102 | 255 | 1209 | medium orchid 2 | 209 | 95 | 238 | 1210 | medium orchid 3 | 180 | 82 | 205 | 1211 | medium orchid 4 | 122 | 55 | 139 | 1212 | dark orchid 1 | 191 | 62 | 255 | 1213 | dark orchid 2 | 178 | 58 | 238 | 1214 | dark orchid 3 | 154 | 50 | 205 | 1215 | dark orchid 4 | 104 | 34 | 139 | 1216 | purple 1 | 155 | 48 | 255 | 1217 | purple 2 | 145 | 44 | 238 | 1218 | purple 3 | 125 | 38 | 205 | 1219 | purple 4 | 85 | 26 | 139 | 1220 | medium purple 1 | 171 | 130 | 255 | 1221 | medium purple 2 | 159 | 121 | 238 | 1222 | medium purple 3 | 137 | 104 | 205 | 1223 | medium purple 4 | 93 | 71 | 139 | 1224 | thistle 1 | 255 | 225 | 255 | 1225 | thistle 2 | 238 | 210 | 238 | 1226 | thistle 3 | 205 | 181 | 205 | 1227 | thistle 4 | 139 | 123 | 139 | 1228 | grey 0 | 0 | 0 | 0 | 1229 | grey 1 | 3 | 3 | 3 | 1230 | grey 2 | 5 | 5 | 5 | 1231 | grey 3 | 8 | 8 | 8 | 1232 | grey 4 | 10 | 10 | 10 | 1233 | grey 5 | 13 | 13 | 13 | 1234 | grey 6 | 15 | 15 | 15 | 1235 | grey 7 | 18 | 18 | 18 | 1236 | grey 8 | 20 | 20 | 20 | 1237 | grey 9 | 23 | 23 | 23 | 1238 | grey 10 | 26 | 26 | 26 | 1239 | grey 11 | 28 | 28 | 28 | 1240 | grey 12 | 31 | 31 | 31 | 1241 | grey 13 | 33 | 33 | 33 | 1242 | grey 14 | 36 | 36 | 36 | 1243 | grey 15 | 38 | 38 | 38 | 1244 | grey 16 | 41 | 41 | 41 | 1245 | grey 17 | 43 | 43 | 43 | 1246 | grey 18 | 46 | 46 | 46 | 1247 | grey 19 | 48 | 48 | 48 | 1248 | grey 20 | 51 | 51 | 51 | 1249 | grey 21 | 54 | 54 | 54 | 1250 | grey 22 | 56 | 56 | 56 | 1251 | grey 23 | 59 | 59 | 59 | 1252 | grey 24 | 61 | 61 | 61 | 1253 | grey 25 | 64 | 64 | 64 | 1254 | grey 26 | 66 | 66 | 66 | 1255 | grey 27 | 69 | 69 | 69 | 1256 | grey 28 | 71 | 71 | 71 | 1257 | grey 29 | 74 | 74 | 74 | 1258 | grey 30 | 77 | 77 | 77 | 1259 | grey 31 | 79 | 79 | 79 | 1260 | grey 32 | 82 | 82 | 82 | 1261 | grey 33 | 84 | 84 | 84 | 1262 | grey 34 | 87 | 87 | 87 | 1263 | grey 35 | 89 | 89 | 89 | 1264 | grey 36 | 92 | 92 | 92 | 1265 | grey 37 | 94 | 94 | 94 | 1266 | grey 38 | 97 | 97 | 97 | 1267 | grey 39 | 99 | 99 | 99 | 1268 | grey 40 | 102 | 102 | 102 | 1269 | grey 41 | 105 | 105 | 105 | 1270 | grey 42 | 107 | 107 | 107 | 1271 | grey 43 | 110 | 110 | 110 | 1272 | grey 44 | 112 | 112 | 112 | 1273 | grey 45 | 115 | 115 | 115 | 1274 | grey 46 | 117 | 117 | 117 | 1275 | grey 47 | 120 | 120 | 120 | 1276 | grey 48 | 122 | 122 | 122 | 1277 | grey 49 | 125 | 125 | 125 | 1278 | grey 50 | 127 | 127 | 127 | 1279 | grey 51 | 130 | 130 | 130 | 1280 | grey 52 | 133 | 133 | 133 | 1281 | grey 53 | 135 | 135 | 135 | 1282 | grey 54 | 138 | 138 | 138 | 1283 | grey 55 | 140 | 140 | 140 | 1284 | grey 56 | 143 | 143 | 143 | 1285 | grey 57 | 145 | 145 | 145 | 1286 | grey 58 | 148 | 148 | 148 | 1287 | grey 59 | 150 | 150 | 150 | 1288 | grey 60 | 153 | 153 | 153 | 1289 | grey 61 | 156 | 156 | 156 | 1290 | grey 62 | 158 | 158 | 158 | 1291 | grey 63 | 161 | 161 | 161 | 1292 | grey 64 | 163 | 163 | 163 | 1293 | grey 65 | 166 | 166 | 166 | 1294 | grey 66 | 168 | 168 | 168 | 1295 | grey 67 | 171 | 171 | 171 | 1296 | grey 68 | 173 | 173 | 173 | 1297 | grey 69 | 176 | 176 | 176 | 1298 | grey 70 | 179 | 179 | 179 | 1299 | grey 71 | 181 | 181 | 181 | 1300 | grey 72 | 184 | 184 | 184 | 1301 | grey 73 | 186 | 186 | 186 | 1302 | grey 74 | 189 | 189 | 189 | 1303 | grey 75 | 191 | 191 | 191 | 1304 | grey 76 | 194 | 194 | 194 | 1305 | grey 77 | 196 | 196 | 196 | 1306 | grey 78 | 199 | 199 | 199 | 1307 | grey 79 | 201 | 201 | 201 | 1308 | grey 80 | 204 | 204 | 204 | 1309 | grey 81 | 207 | 207 | 207 | 1310 | grey 82 | 209 | 209 | 209 | 1311 | grey 83 | 212 | 212 | 212 | 1312 | grey 84 | 214 | 214 | 214 | 1313 | grey 85 | 217 | 217 | 217 | 1314 | grey 86 | 219 | 219 | 219 | 1315 | grey 87 | 222 | 222 | 222 | 1316 | grey 88 | 224 | 224 | 224 | 1317 | grey 89 | 227 | 227 | 227 | 1318 | grey 90 | 229 | 229 | 229 | 1319 | grey 91 | 232 | 232 | 232 | 1320 | grey 92 | 235 | 235 | 235 | 1321 | grey 93 | 237 | 237 | 237 | 1322 | grey 94 | 240 | 240 | 240 | 1323 | grey 95 | 242 | 242 | 242 | 1324 | grey 96 | 245 | 245 | 245 | 1325 | grey 97 | 247 | 247 | 247 | 1326 | grey 98 | 250 | 250 | 250 | 1327 | grey 99 | 252 | 252 | 252 | 1328 | grey 100 | 255 | 255 | 255 | 1329 | dark grey | 169 | 169 | 169 | 1330 | dark blue | 0 | 0 | 139 | 1331 | dark cyan | 0 | 139 | 139 | 1332 | dark magenta | 139 | 0 | 139 | 1333 | dark red | 139 | 0 | 0 | 1334 | light green | 144 | 238 | 144 | 1335 |_______________________________|_________|_________|_________| 1336 1337 """] 1338