simpel question about jit.fill …

Jun 20, 2011 at 10:24pm

simpel question about jit.fill …

hi

what is controlling which color that jit.fill is using. for example. how do I change the color in this very simple patch:

– Pasted Max Patch, click to expand. –

thanks

#57696
Jun 21, 2011 at 3:28am

The 4 planes of the matrix in the jit.matrix object are alpha, red, green, blue (char data). The planes are numbered starting from 0: alpha=0, red=1, green=2, blue=3. The argument ’3′ of the jit.fill object specifies the value of its ‘plane’ attribute. Change that and you’ll change the color.
You can read about this stuff in:
“What is a matrix?” http://www.cycling74.com/docs/max5/tutorials/jit-tut/jitterwhatisamatrix.html
and “Tutorial 5: ARGB color” http://www.cycling74.com/docs/max5/tutorials/jit-tut/jitterchapter05.html

– Pasted Max Patch, click to expand. –
#206777

You must be logged in to reply to this topic.