jit.gl.graph with matrix as input in JS
Hello,
i dont how to write the js script when the matrix comes as an input like in this example :
Max Patch
Copy patch and select New From Clipboard in Max.
I d like to create a jit.gl.graph in js, with a matrix coming from outside js.
var graph = new JitterObject ("jit.gl.graph", "myworld");
graph.circpoints = 5;
graph.scale = [1,1,1];
Does it require to instanciate a jit.matrix inside the js ? with function jit_matrix () ? Can someone help me with the code here?
Second question, would it be more efficient to create the jit.gen inside js as well or is it better to have it as max object?
thx!
ok answering myself :)
function jit_matrix(){
var a = arrayfromargs(arguments);
graph.jit_matrix(a);
}