Lines Matching +refs:round +refs:b
350 var a, b, c;
352 case 'left': a=1; b=0; c=-1; break;
353 case 'right':a=1; b=0; c=1; break;
354 case 'top': a=0; b=1; c=-1; break;
355 default: a=0; b=1; c=1; break;
357 var l = (ts[b]+ps[b])/2;
363 tp[b]+ts[b]-l+l*c
370 -vp[b]+tp[b]+ts[b]+ps[b]-l+l*c > vs[b] ?
371 …(-vp[b]+tp[b]+ts[b]/2 > vs[b]/2 && tp[b]+ts[b]-l-l*c >= 0 ? tp[b]+ts[b]-l-l*c : tp[b]+ts[b]-l+l*c)…
372 (tp[b]+ts[b]-l+l*c >= 0 ? tp[b]+ts[b]-l+l*c : tp[b]+ts[b]-l-l*c)
446 this.fromRGB = function(r, g, b, flags) { // null = don't change argument
449 b<0 && (b=0) || b>1 && (b=1);
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)
500 function RGB_HSV(r, g, b) { argument
501 var n = Math.min(Math.min(r,g),b);
502 var v = Math.max(Math.max(r,g),b);
505 var h = r===n ? 3+(b-g)/m : (g===n ? 5+(r-b)/m : 1+(g-r)/m);
733 var x = Math.round((THIS.hsv[0]/6) * (mxJSColor.images.pad[0]-1));
734 var y = Math.round((1-THIS.hsv[yComponent]) * (mxJSColor.images.pad[1]-1));
785 var y = Math.round((1-THIS.hsv[yComponent]) * (mxJSColor.images.sld[1]-1));