Class GssFunctions.BlendColorsRgb
- java.lang.Object
-
- com.google.common.css.compiler.gssfunctions.GssFunctions.BaseBlendColors
-
- com.google.common.css.compiler.gssfunctions.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.Stringblend(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 com.google.common.css.compiler.gssfunctions.GssFunctions.BaseBlendColors
getCallResultNodes, getCallResultString, getNumExpectedArguments
-
-
-
-
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:
blendin classGssFunctions.BaseBlendColors- Parameters:
startColorStr- The start color in string formendColorStr- The endcolor in string form- Returns:
- The computed color
-
-