filling a matrix with javascript

Nov 7, 2006 at 12:46am

filling a matrix with javascript

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 800×1?

thanks,
Brandon


brandon_morse
ebmorse@gmail.com

http://www.coplanar.org

#28555
Nov 7, 2006 at 1:27am

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 800×1?
>
> thanks,
> Brandon
>
>
> –
> brandon_morse
> ebmorse@gmail.com
>
> http://www.coplanar.org
>

#87841

You must be logged in to reply to this topic.