Using image in jit object

Learning Zones's icon

Hello,
How can I use a graphic image and put it into a jit object (like jit.gl.pix) ?
The purpose is to mix a video with a background color for instance.

Many thanks

Roman Thilenius's icon


that would be jit.matrix, the most basic jitter objects of all.

Matteo Marson's icon

Hey,

This is a way to use jit.gl.pix for mixing a video and a solid color:

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

Learning Zones's icon

Thank you Matteo,

It's helpful and it's was I was looking for.
But there is something I can't find: Where do you access to the background_color (attrui) in your exemple?
If I do the same and create a swatch object I can't choose this attribute ?

Many thanks

Matteo Marson's icon

The background_color attrui pops up because I set a param object in jit.gl.pix called "background_color". Double-click on jit.gl.pix to see its content

Learning Zones's icon

oh ok, thank you.