Tests happened in head. This should be moved to a JS-only file.
DEBUG: #003399 -> hex2rgb -> 0,51,153 -> rgb2hex -> #003399
DEBUG: extractRGB(#003399) 0,51,153
DEBUG: #039 -> hex2rgb -> 0,51,153 -> rgb2hex -> #003399
DEBUG: extractRGB(#039) 0,51,153
DEBUG: 003399 -> hex2rgb -> 0,51,153 -> rgb2hex -> #003399
DEBUG: extractRGB(003399) 0,51,153
DEBUG: 039 -> hex2rgb -> 0,51,153 -> rgb2hex -> #003399
DEBUG: extractRGB(039) 0,51,153
DEBUG:
DEBUG: Color object:
DEBUG: toRgb: 255,255,204
DEBUG: toHex: #ffffcc
DEBUG: toCss: rgb(255,255,204)
DEBUG: toString: #ffffcc
DEBUG: toHsv: 43,51,255
DEBUG: toHsl: 43,255,230
DEBUG:
DEBUG: Named colors:
DEBUG: white -> 255,255,255 -> #ffffff
DEBUG: black -> 0,0,0 -> #000000
DEBUG: red -> 255,0,0 -> #ff0000
DEBUG: green -> 0,255,0 -> #00ff00
DEBUG: blue -> 0,0,255 -> #0000ff
DEBUG: navy -> 0,0,128 -> #000080
DEBUG: gray -> 128,128,128 -> #808080
DEBUG: silver -> 192,192,192 -> #c0c0c0
DEBUG:
DEBUG: Color spaces:
DEBUG: HSV: 255,255,204 -> 43,51,255 -> 255,255,204
DEBUG: HSL: 255,255,204 -> 43,255,230 -> 255,255,205
DEBUG:
DEBUG: String handling:
DEBUG: Hex from rgb(100,100,100): #646464
DEBUG: Hex from rgb(255,0,128): #ff0080