Lines Matching refs:rgb
342 this.rgb = [1, 1, 1]; // read-only 0-1, 0-1, 0-1
458 0.213 * this.rgb[0] +
459 0.715 * this.rgb[1] +
460 0.072 * this.rgb[2]
477 this.rgb = HSV_RGB(
493 r===null ? this.rgb[0] : r,
494 g===null ? this.rgb[1] : g,
495 b===null ? this.rgb[2] : b
506 var rgb = HSV_RGB(this.hsv[0], this.hsv[1], this.hsv[2]);
507 this.rgb[0] = rgb[0];
508 this.rgb[1] = rgb[1];
509 this.rgb[2] = rgb[2];
542 (0x100 | Math.round(255*this.rgb[0])).toString(16).substr(1) +
543 (0x100 | Math.round(255*this.rgb[1])).toString(16).substr(1) +
544 (0x100 | Math.round(255*this.rgb[2])).toString(16).substr(1)
836 var rgb = HSV_RGB(THIS.hsv[0], THIS.hsv[1], 1);
839 (rgb[0]*(1-i/seg.length)*100)+'%,'+
840 (rgb[1]*(1-i/seg.length)*100)+'%,'+
841 (rgb[2]*(1-i/seg.length)*100)+'%)';
845 var rgb, s, c = [ THIS.hsv[2], 0, 0 ];
850 case 0: rgb=[0,1,2]; break;
851 case 1: rgb=[1,0,2]; break;
852 case 2: rgb=[2,0,1]; break;
853 case 3: rgb=[2,1,0]; break;
854 case 4: rgb=[1,2,0]; break;
855 case 5: rgb=[0,2,1]; break;
862 (c[rgb[0]]*100)+'%,'+
863 (c[rgb[1]]*100)+'%,'+
864 (c[rgb[2]]*100)+'%)';