Power Colour Function

Started by rcallicotte, December 14, 2007, 07:50:51 PM

Previous topic - Next topic

rcallicotte

Would someone explain how this works as far as what it does or what it can be used to do?
So this is Disney World.  Can we live here?

Matt

The components of the first colour are raised to the power of the components of the second colour. You could just use a scalar for the second colour. The logic is similar to this:

http://forums.planetside.co.uk/index.php?topic=2072

except replace "multiplied by" with "raised to the power of"

As an example of why this might be useful, gamma correction of images is done by raising a colour to the power of some value (the larger the power value, the darker the resulting image).

Matt
Just because milk is white doesn't mean that clouds are made of milk.

rcallicotte

Thanks Matt.  This is very helpful.
So this is Disney World.  Can we live here?