Forums > Jitter

Simple way to tint a color image to a single color?

Sep 12 2012 | 4:48 am

So I have a full color movie, and I want to be able to gradually a apply a red tint to it, ie. I want to be able to regulate it from the unaltered image to an image that is basically black -> red.

I suspect what I want is to go from RGB to HSL, and then just change the H for all pixels to red, but I can’t quite get my head round how to do it right now. Any thoughts?

Sep 12 2012 | 6:24 am

Nevermind, jit.scalebias does this.

Sep 14 2012 | 7:30 pm

Nevermind, nevermind.

Just using jit.scalebias dramatically dims the display when tinting, if you just zero out the blue and green scales.

What works best is source -> jit.rgb.luma -> jit.matrix to make it 4 planes again -> jit.scalebias

-- Pasted Max Patch, click to expand. --

Sep 14 2012 | 8:30 pm

You can also get some color effects using videoplanes and glsketch with glcolor and a blendmode of 0 3 (also try blendmode 4 5). This way, you can do the processing on the video card, and you don’t have to worry about shaders, either.

-- Pasted Max Patch, click to expand. --

Viewing 4 posts - 1 through 4 (of 4 total)

Forums > Jitter