Lines Matching refs:rgb
310 this.rgb = [1, 1, 1]; // read-only 0-1, 0-1, 0-1
419 0.213 * this.rgb[0] +
420 0.715 * this.rgb[1] +
421 0.072 * this.rgb[2]
437 this.rgb = HSV_RGB(
451 r===null ? this.rgb[0] : (this.rgb[0]=r),
452 g===null ? this.rgb[1] : (this.rgb[1]=g),
453 b===null ? this.rgb[2] : (this.rgb[2]=b)
493 (0x100 | Math.round(255*this.rgb[0])).toString(16).substr(1) +
494 (0x100 | Math.round(255*this.rgb[1])).toString(16).substr(1) +
495 (0x100 | Math.round(255*this.rgb[2])).toString(16).substr(1)
744 var rgb = HSV_RGB(THIS.hsv[0], THIS.hsv[1], 1);
747 (rgb[0]*(1-i/seg.length)*100)+'%,'+
748 (rgb[1]*(1-i/seg.length)*100)+'%,'+
749 (rgb[2]*(1-i/seg.length)*100)+'%)';
753 var rgb, s, c = [ THIS.hsv[2], 0, 0 ];
758 case 0: rgb=[0,1,2]; break;
759 case 1: rgb=[1,0,2]; break;
760 case 2: rgb=[2,0,1]; break;
761 case 3: rgb=[2,1,0]; break;
762 case 4: rgb=[1,2,0]; break;
763 case 5: rgb=[0,2,1]; break;
770 (c[rgb[0]]*100)+'%,'+
771 (c[rgb[1]]*100)+'%,'+
772 (c[rgb[2]]*100)+'%)';