Re: West (Reaktor) programmer
Posted: 30 Oct 2014 11:50
Hi phil
The canvas overlay works well for some things and I incasing them in containers helps there,
I have had issues with my rotary touch controller that is easily fixed with a knob
The canvas_save/restore functions slow you to save the then current state of the canvas and later restore it . . .
This allows you to save, then alter the canvas, draw on it and then restore the previous state...
Remember there are two ways of drawing in different places on the canvas- move the pen or move the canvas...
You can draw something at x,y or canvas_ translate to x,y and draw at 0,0 - it's the same thing in the end...
The drawing optimisations come down to the canvas_refresh function and On demand drawing
Rather then always redrawing it only redraws when told to ie when value changes
Other things might be making single background image and using alias's for the rest,..
Or having common code to draw them all so you can change them all easily etc
Checking out html5 canvas tutorials might help once yo realise ways to translate them to lemur
Cheers
The canvas overlay works well for some things and I incasing them in containers helps there,
I have had issues with my rotary touch controller that is easily fixed with a knob
The canvas_save/restore functions slow you to save the then current state of the canvas and later restore it . . .
This allows you to save, then alter the canvas, draw on it and then restore the previous state...
Remember there are two ways of drawing in different places on the canvas- move the pen or move the canvas...
You can draw something at x,y or canvas_ translate to x,y and draw at 0,0 - it's the same thing in the end...
The drawing optimisations come down to the canvas_refresh function and On demand drawing
Rather then always redrawing it only redraws when told to ie when value changes
Other things might be making single background image and using alias's for the rest,..
Or having common code to draw them all so you can change them all easily etc
Checking out html5 canvas tutorials might help once yo realise ways to translate them to lemur
Cheers