documentation indexreference manualfunction index

im.matrix.tint

Function: im.matrix.tint (r, g, b):

Constructs an im.matrix that tints an image, while leaving the alpha channel intact. r, g, and b, should be numbers between 0 and 1, and control what fraction of the given channel is placed into the final image. (For example, if r is .5, and a pixel has a red component of 100, the corresponding pixel will have a red component of 50.)


documentation indexreference manualfunction index