Class GssFunctions.BaseHslColorManipulation

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.lang.String addHslToCssColor​(java.lang.String baseColorString, int hueToAdd, int saturationToAdd, int lightnessToAdd)
      Takes a CSS color string, and adds the specified amount of hue, saturation and lightness to it in HSL color space
      protected java.lang.String addHslToCssColor​(java.lang.String baseColorString, java.lang.String hueToAdd, java.lang.String saturationToAdd, java.lang.String lightnessToAdd)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BaseHslColorManipulation

        public BaseHslColorManipulation()
    • Method Detail

      • addHslToCssColor

        protected java.lang.String addHslToCssColor​(java.lang.String baseColorString,
                                                    java.lang.String hueToAdd,
                                                    java.lang.String saturationToAdd,
                                                    java.lang.String lightnessToAdd)
                                             throws GssFunctionException
        Throws:
        GssFunctionException
      • addHslToCssColor

        protected java.lang.String addHslToCssColor​(java.lang.String baseColorString,
                                                    int hueToAdd,
                                                    int saturationToAdd,
                                                    int lightnessToAdd)
        Takes a CSS color string, and adds the specified amount of hue, saturation and lightness to it in HSL color space
        Parameters:
        baseColorString - The string representing the color to change
        hueToAdd - The amount of hue to add (can be negative)
        saturationToAdd - The amount of saturation to add (can be negative)
        lightnessToAdd - The amount of lightness to add (can be negative)
        Returns:
        A CSS String representing the new color