I want to ajust the hue, saturation and luminace of an image for specific color shades using OpenGLES or GPUImageFilter.
It should basically like this

Seems like there's no built-in functionality for it in this library. So, you can implement it yourself by extending GPUImageFilter and writing a corresponding shader.
You can reuse existing Hue, Saturation, and Luminance filters. The idea is simple - you're passing an additional parameter (color) to the shader. Based on this color and the color of the current pixel, you can choose if the current pixel should be affected by the shader or not.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With