why doesnt the led and 1-cell matrix show same color

Per's icon

Hi!

Im trying to make a led display of a matrix and made a test with 1-cell matrix from my webcam. Then Im using the jit.spill to get the color numbers from different planes from the one cell-matrix.

Then Im scaling the number to fit the led-color that is numbered 0.-1.

then I supposed the color in the jit.pwindow and in the led but they get different colors, how come???

Max Patch
Copy patch and select New From Clipboard in Max.

heres the patch:

thanks

Per's icon

here you can see a snapshot of the picture.

the square is the jit.pwindow and below that is a led.

it appears that according to the numbers the color in the jit.pwindow isnt the correct color. why?

2530.h.jpg
jpg