Extra blend modes

1 reply [Last post]
stevoarnold
User offline. Last seen 8 years 45 weeks ago. Offline
Joined: 07/10/2012
Posts:

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

Brad Larson
Brad Larson's picture
User offline. Last seen 4 years 22 weeks ago. Offline
Joined: 05/14/2008
Posts:

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.

Syndicate content