ModulateFactorCh multiplies a color channel with the passed factor (c1 * f). For 8 bit channels, the actual equation used is: min(c1*(f+1), 255).
Parameters |
Description |
unsigned c1 |
The color channel that is multiplied with the factor to form the new value (return value). |
UByte factor |
The factor that is multiplied with the channel to form the new value (return value). |
An UByte value formed from the product of the channel and factor (c1 * f).