fabianmoronzirfas
10/17/2012 - 1:26 PM

call the colorpicker from extend script

call the colorpicker from extend script

    // this is taken from trackerViz by
    // the ingenious NAB
    // where do you learn this stuff?
    // shifting around values to create colors.
    // I need to have a peak into that aswell

color_picker ();

function color_picker(){
     var initialRGB = [1,1,1];
     var colorInt = 255 * (65536 * initialRGB[0] + 256 * initialRGB[1] + initialRGB[2]);
     var c = $.colorPicker(colorInt);    
     if (c == -1) return;                
     var r = ((c >> 16) & 0xFF) ;
     var g = ((c >> 8) & 0xFF) ;
     var b = (c & 0xFF) ;

    alert("R: " + r + " G: " + g + " B: " + b);
     
 }
    // var selected_color = $.colorPicker("#FFFFFF");