< Previous | Contents | Next >

Color Functions

Color Functions will apply basic color math operations to an image like Gain(multiply) , Gamma (power), Saturate (color +/- luminance), these can apply to RGBA extcepth Saturate.


--**********Color Functions************

out = img:Copy() -- copy input image to out image out:Gain(1.1 , 1.2 , 1.3, 1)--RGBA

out:Gamma(1.5, 1.5, 1.5, 1)--RGBA

out:Saturate(1.5,1.5,1.5)--RGB