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
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 -
Method Summary
Methods inherited from class com.google.common.css.compiler.gssfunctions.GssFunctions.BaseBlendColors
getCallResultNodes, getCallResultString, getNumExpectedArguments
-
Constructor Details
-
BlendColorsRgb
public BlendColorsRgb()
-
-
Method Details
-
blend
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
-