XML Feeds

.

[javascript-dev] jsui mysketch

klaus filip klaus at klingt.org
Sat Dec 22 11:29:44 MST 2007


thanks joshua,
so this means i have to clear the entire main sketch on every move of  
one of my sliders.

maybe a good approach then would be to "record" all other sliders  
into one sketch instance,
and redraw the moving slider together with a copypixels of that  
sketch instance.

\\
klaus


On Dec 20, 2007, at 9:13 PM, Joshua Kit Clayton wrote:

>
> On Dec 20, 2007, at 6:27 AM, klaus filip wrote:
>
>> 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...
>
> Other sketch instances are not visible. They must be drawn into the  
> main sketch to see. This is demonstrated in the jsui_imagestuff- 
> example.pat, in the sketchpix() js function, which I've included  
> below. You can also copy sketch instances pixels to an image for  
> use with the other image drawing functions. Hope this gets you on  
> the right track.
>
>
> -Joshua



More information about the javascript-dev mailing list