[javascript-dev] jsui mysketch
klaus filip
klaus at klingt.org
Thu Dec 20 07:27:26 MST 2007
- Previous message: [javascript-dev] Re: Re: Re: Re: javascript + Pattr question - storing multiple values of mixed types (string/float)
- Next message: [javascript-dev] jsui mysketch
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
hi
i am trying to build a multi-2D slider as jsui and hanging at the
very basics.
since i don't want to redraw all sliders i want to use multiple
sketches (like sprites).
below is my basic misunderstanding, the function dsketch works,
but the function dsketch2 is doing nothing...
if somebody already did a jsui for multiple 2D-sliders and wants to
share this, i would not mind as well ;-)
thanks
klaus
autowatch = 1;
inlets = 2;
outlets = 1;
sketch.default2d();
var vbrgb = [0.3,0.3,0.6,0.5];
var vfrgb = [0.8,0.8,0.3,0.5];
var width = box.rect[2] - box.rect[0];
var height = box.rect[3] - box.rect[1];
var sketch2 = new Sketch(width,height);
sketch2.default2d();
function dsketch()
{
with (sketch)
{
glclearcolor(vbrgb);
glclear();
refresh();
}
}
function dsketch2()
{
with (sketch2)
{
glclearcolor(vbrgb);
glclear();
refresh();
}
}
- Previous message: [javascript-dev] Re: Re: Re: Re: javascript + Pattr question - storing multiple values of mixed types (string/float)
- Next message: [javascript-dev] jsui mysketch
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
