Extra blend modes
Tue, 07/10/2012 - 22:00
Hi there,
Firstly, I just want to say thanks for putting GPUImage out there for us all, it really is great.
I wondered what it would take to add in some of the blend modes that aren't currently available? In particular, the following:
Color
Luminosity
Hue
Saturation
Normal
Was there a technical reason why they were left out?
Thanks again
Steve
No technical reason, I just didn't find the time to add them and nobody requested them. I believe the Normal blend mode is simply the alpha blend I already have in there, unless I'm reading something wrong.
All that it would take for me to add these would be the per-pixel math for each blend. If you can find a good equation or implementation for each, I can write a filter for that blend calculation.