Class GssFunctions.BlendColorsRgb

  • All Implemented Interfaces:
    GssFunction
    Enclosing class:
    GssFunctions

    public static class GssFunctions.BlendColorsRgb
    extends GssFunctions.BaseBlendColors
    Implementation of the blendColorsRgb GSS function. Returns a color half way between the two colors by averaging each of red, green and blue.
    • Constructor Summary

      Constructors 
      Constructor Description
      BlendColorsRgb()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String blend​(java.lang.String startColorStr, java.lang.String endColorStr)
      Returns the string representation in hex format for a color half way in between the two supplied colors by averaging each of red, green and blue.
      • Methods inherited from class java.lang.Object

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

      • BlendColorsRgb

        public BlendColorsRgb()
    • Method Detail

      • blend

        public java.lang.String blend​(java.lang.String startColorStr,
                                      java.lang.String endColorStr)
        Returns the string representation in hex format for a color half way in between the two supplied colors by averaging each of red, green and blue.
        Specified by:
        blend in class GssFunctions.BaseBlendColors
        Parameters:
        startColorStr - The start color in string form
        endColorStr - The endcolor in string form
        Returns:
        The computed color