In PixelAudioMapper I wrote eight "apply" methods: applyBrightness, applyHue, applySaturation, applyRed, applyGreeen, applyBlue, applyAlpha, applyAll. Each method accepts a float value and an int, which should be an audio value and an RGB value. The float is applied in the selected channel and returned as an RGB value.
The code that call the apply methods was simplified, as expected. This may be all we need to do. However, all these methods have the signature applyChannel(float, int). Perhaps further thought is needed for situations where both arguments are RGB int values.
In
PixelAudioMapper
I wrote eight "apply" methods:applyBrightness, applyHue, applySaturation, applyRed, applyGreeen, applyBlue, applyAlpha, applyAll
. Each method accepts a float value and an int, which should be an audio value and an RGB value. The float is applied in the selected channel and returned as an RGB value.The code that call the apply methods was simplified, as expected. This may be all we need to do. However, all these methods have the signature
applyChannel(float, int)
. Perhaps further thought is needed for situations where both arguments are RGB int values.