filling a matrix with javascript


    Nov 07 2006 | 12:46 am
    Hello, I'm trying to fill a single scanline of a matrix using javascript. I'm sending an array to the matrix, but it appears that these arrays are limited to 256 cells. Anyone have any ideas as to how i could send, say 800 values from the javascript to fill a matrix with dimensions of 800x1?
    thanks, Brandon
    -- brandon_morse ebmorse@gmail.com

    • Nov 07 2006 | 1:27 am
      var mat = new JitterMatrix(1, "float32", 800, 1);
      for(var i=0; i < mat.dim[0]; i++) { mat.setcell(i, 0, "val", myval[i]); }
      On 11/6/06, Brandon Morse wrote: > Hello, > I'm trying to fill a single scanline of a matrix using javascript. > I'm sending an array to the matrix, but it appears that these arrays > are limited to 256 cells. Anyone have any ideas as to how i could > send, say 800 values from the javascript to fill a matrix with > dimensions of 800x1? > > thanks, > Brandon > > > -- > brandon_morse > ebmorse@gmail.com > > http://www.coplanar.org >