New mgraphics JSUI scripts

Nov 26, 2011 at 5:35pm

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.

[attachment=177458,2976] [attachment=177458,2977]

  1. clickedlist.png
Nov 28, 2011 at 11:18pm

Dude – nicely done!

Nov 29, 2011 at 8:58pm

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:


  1. sequentialcircuits.png
Nov 30, 2011 at 5:48am

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!


Nov 30, 2011 at 7:59pm

thanks for the info…it did help! i updated the script


Jun 10, 2012 at 9:12pm

added a couple of new ones (a pattr aware trajectory BPF function and a heart-rate monitor, a bit like multislider in scroll mode)

[attachment=196251,4012] [attachment=196251,4013]

  1. datadisplay.png

You must be logged in to reply to this topic.