< Previous | Contents | Next >
Channel operations are the arithmetic operations Add, Subtract, Multiply, and Divide. Values are applied to channels in the images.
--***********Color Channel Math Operations***********
-- Channel Math operations, apply a value to image(img) to output (out)
-- "Add", Multiply, Subtract, Divide
out = img:ChannelOpOf("Add", nil, { R = 0.1, G = 0.1, B = 0.1, A = 0.0})
out = out:ChannelOpOf("Multiply", nil, { R = 1.1, G = 1.1, B = 1.1, A = 1.0})
out = out:ChannelOpOf("Subtract", nil, { R = 0.2, G = 0.2, B = 0.2, A = 0.0})
out = out:ChannelOpOf("Divide", nil, { R = 0.8, G = 0.8, B = 0.8, A = 1.0})