New mgraphics JSUI scripts
I updated a couple of my JSUI scripts to work with mgraphics instead of sketch. This is particularly nice for ol.pngknob.js which now supports transparent backgrounds.
Dude - nicely done!
i just updated it, adding a couple more .png files to the help patch.
I've been trying to figure out mgraphics from your examples and from the Jgraphics stuff in the sdk, but still don't understand a few things. I want to be able to specify the colour of the text and a background colour (potentially transparent) in ol.pngknob.js but when I tried that it changed the colours of the image as well. Any ideas?
by the way the povray scripts to make the knob images can be found here:
The color settings are single-state, so each time you change it you are changing the colors for the next drawing function. Instead, you need to change a color, draw some portion, change a color, draw the next portion. It helps to save()/restore() after each section so you don't have to undo any transformations that you might have done along the way.
Hope that helps!
[ddg]
thanks for the info...it did help! i updated the script
oli
added a couple of new ones (a pattr aware trajectory BPF function and a heart-rate monitor, a bit like multislider in scroll mode)