Class HsbEffect


  • public class HsbEffect
    extends PostProcessingEffect
    Hue, saturation and value post processing effect
    Author:
    Darius Dinger
    • Constructor Detail

      • HsbEffect

        public HsbEffect()
        Creating new Hue saturation and brightness effect
    • Method Detail

      • setHue

        public void setHue​(float hue)
        Setting the hue factor of this effect. The output color will be calculated by
        NewHue = OldHue * hue
        Parameters:
        hue - New hue value
      • setSaturation

        public void setSaturation​(float saturation)
        Setting the saturation factor of this effect. The output color will be calculated by
        NewSaturation = OldSaturation * saturation
        Parameters:
        saturation - New saturation value
      • setBrightness

        public void setBrightness​(float brightness)
        Setting the brightness factor of this effect. The output color will be calculated by
        NewBrightness = OldBrightness * brightness
        Parameters:
        brightness - New brightness value
      • getHue

        public float getHue()
        Returns:
        Hue value of the effect
      • getSaturation

        public float getSaturation()
        Returns:
        Saturation value of the effect
      • getBrightness

        public float getBrightness()
        Returns:
        Brightness value of the effect