Tests happened in head. This should be moved to a JS-only file.
DEBUG: DEPRECATED: dojo.graphics.color.Color is now dojo.gfx.color.Color. 0.5
DEBUG: DEPRECATED: dojo.graphics.color.hsv has been replaced by dojo.gfx.color.hsv 0.5
DEBUG: DEPRECATED: dojo.graphics.color.hsl has been replaced with dojo.gfx.color.hsl 0.5
DEBUG: DEPRECATED: dojo.graphics.color.hex2rgb is now dojo.gfx.color.hex2rgb 0.5
DEBUG: DEPRECATED: dojo.graphics.color.rgb2hex is now dojo.gfx.color.rgb2hex 0.5
DEBUG: #003399 -> hex2rgb -> 0,51,153 -> rgb2hex -> function(r, g, b) { if(dojo.lang.isArray(r)) { g = r[1] || 0; b = r[2] || 0; r = r[0] || 0; } var ret = dojo.lang.map([r, g, b], function(x) { x = new Number(x); var s = x.toString(16); while(s.length < 2) { s = "0" + s; } return s; }); ret.unshift("#"); return ret.join(""); }
DEBUG: DEPRECATED: dojo.graphics.color.extractRGB is now dojo.gfx.color.extractRGB 0.5
DEBUG: extractRGB(#003399) 0,51,153
DEBUG: DEPRECATED: dojo.graphics.color.hex2rgb is now dojo.gfx.color.hex2rgb 0.5
DEBUG: DEPRECATED: dojo.graphics.color.rgb2hex is now dojo.gfx.color.rgb2hex 0.5
DEBUG: #039 -> hex2rgb -> 0,51,153 -> rgb2hex -> function(r, g, b) { if(dojo.lang.isArray(r)) { g = r[1] || 0; b = r[2] || 0; r = r[0] || 0; } var ret = dojo.lang.map([r, g, b], function(x) { x = new Number(x); var s = x.toString(16); while(s.length < 2) { s = "0" + s; } return s; }); ret.unshift("#"); return ret.join(""); }
DEBUG: DEPRECATED: dojo.graphics.color.extractRGB is now dojo.gfx.color.extractRGB 0.5
DEBUG: extractRGB(#039) 0,51,153
DEBUG: DEPRECATED: dojo.graphics.color.hex2rgb is now dojo.gfx.color.hex2rgb 0.5
DEBUG: DEPRECATED: dojo.graphics.color.rgb2hex is now dojo.gfx.color.rgb2hex 0.5
DEBUG: 003399 -> hex2rgb -> 0,51,153 -> rgb2hex -> function(r, g, b) { if(dojo.lang.isArray(r)) { g = r[1] || 0; b = r[2] || 0; r = r[0] || 0; } var ret = dojo.lang.map([r, g, b], function(x) { x = new Number(x); var s = x.toString(16); while(s.length < 2) { s = "0" + s; } return s; }); ret.unshift("#"); return ret.join(""); }
DEBUG: DEPRECATED: dojo.graphics.color.extractRGB is now dojo.gfx.color.extractRGB 0.5
DEBUG: extractRGB(003399) 0,51,153
DEBUG: DEPRECATED: dojo.graphics.color.hex2rgb is now dojo.gfx.color.hex2rgb 0.5
DEBUG: DEPRECATED: dojo.graphics.color.rgb2hex is now dojo.gfx.color.rgb2hex 0.5
DEBUG: 039 -> hex2rgb -> 0,51,153 -> rgb2hex -> function(r, g, b) { if(dojo.lang.isArray(r)) { g = r[1] || 0; b = r[2] || 0; r = r[0] || 0; } var ret = dojo.lang.map([r, g, b], function(x) { x = new Number(x); var s = x.toString(16); while(s.length < 2) { s = "0" + s; } return s; }); ret.unshift("#"); return ret.join(""); }
DEBUG: DEPRECATED: dojo.graphics.color.extractRGB is now dojo.gfx.color.extractRGB 0.5
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: DEPRECATED: dojo.graphics.color.extractRGB is now dojo.gfx.color.extractRGB 0.5
DEBUG: DEPRECATED: dojo.graphics.color.rgb2hex is now dojo.gfx.color.rgb2hex 0.5
DEBUG: white -> 255,255,255 -> function(r, g, b) { if(dojo.lang.isArray(r)) { g = r[1] || 0; b = r[2] || 0; r = r[0] || 0; } var ret = dojo.lang.map([r, g, b], function(x) { x = new Number(x); var s = x.toString(16); while(s.length < 2) { s = "0" + s; } return s; }); ret.unshift("#"); return ret.join(""); }
DEBUG: DEPRECATED: dojo.graphics.color.extractRGB is now dojo.gfx.color.extractRGB 0.5
DEBUG: DEPRECATED: dojo.graphics.color.rgb2hex is now dojo.gfx.color.rgb2hex 0.5
DEBUG: black -> 0,0,0 -> function(r, g, b) { if(dojo.lang.isArray(r)) { g = r[1] || 0; b = r[2] || 0; r = r[0] || 0; } var ret = dojo.lang.map([r, g, b], function(x) { x = new Number(x); var s = x.toString(16); while(s.length < 2) { s = "0" + s; } return s; }); ret.unshift("#"); return ret.join(""); }
DEBUG: DEPRECATED: dojo.graphics.color.extractRGB is now dojo.gfx.color.extractRGB 0.5
DEBUG: DEPRECATED: dojo.graphics.color.rgb2hex is now dojo.gfx.color.rgb2hex 0.5
DEBUG: red -> 255,0,0 -> function(r, g, b) { if(dojo.lang.isArray(r)) { g = r[1] || 0; b = r[2] || 0; r = r[0] || 0; } var ret = dojo.lang.map([r, g, b], function(x) { x = new Number(x); var s = x.toString(16); while(s.length < 2) { s = "0" + s; } return s; }); ret.unshift("#"); return ret.join(""); }
DEBUG: DEPRECATED: dojo.graphics.color.extractRGB is now dojo.gfx.color.extractRGB 0.5
DEBUG: DEPRECATED: dojo.graphics.color.rgb2hex is now dojo.gfx.color.rgb2hex 0.5
DEBUG: green -> 0,255,0 -> function(r, g, b) { if(dojo.lang.isArray(r)) { g = r[1] || 0; b = r[2] || 0; r = r[0] || 0; } var ret = dojo.lang.map([r, g, b], function(x) { x = new Number(x); var s = x.toString(16); while(s.length < 2) { s = "0" + s; } return s; }); ret.unshift("#"); return ret.join(""); }
DEBUG: DEPRECATED: dojo.graphics.color.extractRGB is now dojo.gfx.color.extractRGB 0.5
DEBUG: DEPRECATED: dojo.graphics.color.rgb2hex is now dojo.gfx.color.rgb2hex 0.5
DEBUG: lime -> 0,255,0 -> function(r, g, b) { if(dojo.lang.isArray(r)) { g = r[1] || 0; b = r[2] || 0; r = r[0] || 0; } var ret = dojo.lang.map([r, g, b], function(x) { x = new Number(x); var s = x.toString(16); while(s.length < 2) { s = "0" + s; } return s; }); ret.unshift("#"); return ret.join(""); }
DEBUG: DEPRECATED: dojo.graphics.color.extractRGB is now dojo.gfx.color.extractRGB 0.5
DEBUG: DEPRECATED: dojo.graphics.color.rgb2hex is now dojo.gfx.color.rgb2hex 0.5
DEBUG: blue -> 0,0,255 -> function(r, g, b) { if(dojo.lang.isArray(r)) { g = r[1] || 0; b = r[2] || 0; r = r[0] || 0; } var ret = dojo.lang.map([r, g, b], function(x) { x = new Number(x); var s = x.toString(16); while(s.length < 2) { s = "0" + s; } return s; }); ret.unshift("#"); return ret.join(""); }
DEBUG: DEPRECATED: dojo.graphics.color.extractRGB is now dojo.gfx.color.extractRGB 0.5
DEBUG: DEPRECATED: dojo.graphics.color.rgb2hex is now dojo.gfx.color.rgb2hex 0.5
DEBUG: navy -> 0,0,128 -> function(r, g, b) { if(dojo.lang.isArray(r)) { g = r[1] || 0; b = r[2] || 0; r = r[0] || 0; } var ret = dojo.lang.map([r, g, b], function(x) { x = new Number(x); var s = x.toString(16); while(s.length < 2) { s = "0" + s; } return s; }); ret.unshift("#"); return ret.join(""); }
DEBUG: DEPRECATED: dojo.graphics.color.extractRGB is now dojo.gfx.color.extractRGB 0.5
DEBUG: DEPRECATED: dojo.graphics.color.rgb2hex is now dojo.gfx.color.rgb2hex 0.5
DEBUG: gray -> 128,128,128 -> function(r, g, b) { if(dojo.lang.isArray(r)) { g = r[1] || 0; b = r[2] || 0; r = r[0] || 0; } var ret = dojo.lang.map([r, g, b], function(x) { x = new Number(x); var s = x.toString(16); while(s.length < 2) { s = "0" + s; } return s; }); ret.unshift("#"); return ret.join(""); }
DEBUG: DEPRECATED: dojo.graphics.color.extractRGB is now dojo.gfx.color.extractRGB 0.5
DEBUG: DEPRECATED: dojo.graphics.color.rgb2hex is now dojo.gfx.color.rgb2hex 0.5
DEBUG: silver -> 192,192,192 -> function(r, g, b) { if(dojo.lang.isArray(r)) { g = r[1] || 0; b = r[2] || 0; r = r[0] || 0; } var ret = dojo.lang.map([r, g, b], function(x) { x = new Number(x); var s = x.toString(16); while(s.length < 2) { s = "0" + s; } return s; }); ret.unshift("#"); return ret.join(""); }
DEBUG:
DEBUG: Color spaces:
DEBUG: DEPRECATED: dojo.graphics.color.rgb2hsv has been replaced by dojo.gfx.color.rgb2hsv 0.5
DEBUG: DEPRECATED: dojo.graphics.color.hsv2rgb has been replaced by dojo.gfx.color.hsv2rgb 0.5
DEBUG: HSV: 255,255,204 -> 43,51,255 -> 254,255,204
DEBUG: DEPRECATED: dojo.graphics.color.rgb2hsl has been replaced with dojo.gfx.color.rgb2hsl 0.5
DEBUG: DEPRECATED: dojo.graphics.color.hsl2rgb has been replaced with dojo.gfx.color.hsl2rgb 0.5
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