[javascript-dev] Re: jsui border color
Salvator
cycling at editions-ihs.com
Sat Jan 5 02:57:44 MST 2008
- Next message: [javascript-dev] Declaring classes in javascript?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
HI Joshua,
Thanks, I finally got something working.
function draw()
{
var width = box.rect[2] - box.rect[0];
var height = box.rect[3] - box.rect[1];
var aspect = width/height;
with (sketch) {
glclearcolor(myfrgb);// bg (color)
glclear(); // kind of background
glcolor(0,0,0); // FILL COLOR
plane(aspect*0.98,0.90); // "FILL PLANE
}
}
Though I'm a bit lost with those coordinate (+/-aspect & +/-1) and doing a plane by using percentage of the aspect and +/-1 value only work for certain resize (the horizontal and vertical border sometimes is not the same, depending of the sizebox).
So I would prefer to have a value in pixel that is constant for both horizontal and vertical.
Should I plunge into learning "sceentoworkld" and the like ?
Should I use line drawing instad of plane ?
Thanks,
Salvator
- Next message: [javascript-dev] Declaring classes in javascript?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
