public class Functions extends Object
| Modifier and Type | Method and Description |
|---|---|
static Expression |
adjusthue(Generator generator,
FunctionCall input)
Adjusts the hue of the given color by the given number of degrees.
|
static Expression |
darken(Generator generator,
FunctionCall input)
Decreases the lightness of the given color by N percent.
|
static Expression |
desaturate(Generator generator,
FunctionCall input)
Decreases the saturation of the given color by N percent.
|
static Expression |
lighten(Generator generator,
FunctionCall input)
Increases the lightness of the given color by N percent.
|
static Expression |
rgb(Generator generator,
FunctionCall input)
Creates a color from given RGB values.
|
static Expression |
rgba(Generator generator,
FunctionCall input)
Creates a color from given RGB and alpha values.
|
static Expression |
saturate(Generator generator,
FunctionCall input)
Increases the saturation of the given color by N percent.
|
public static Expression rgb(Generator generator, FunctionCall input)
generator - the surrounding generatorinput - the function call to evaluatepublic static Expression rgba(Generator generator, FunctionCall input)
generator - the surrounding generatorinput - the function call to evaluatepublic static Expression adjusthue(Generator generator, FunctionCall input)
generator - the surrounding generatorinput - the function call to evaluatepublic static Expression lighten(Generator generator, FunctionCall input)
generator - the surrounding generatorinput - the function call to evaluatepublic static Expression darken(Generator generator, FunctionCall input)
generator - the surrounding generatorinput - the function call to evaluatepublic static Expression saturate(Generator generator, FunctionCall input)
generator - the surrounding generatorinput - the function call to evaluatepublic static Expression desaturate(Generator generator, FunctionCall input)
generator - the surrounding generatorinput - the function call to evaluateCopyright © 2016. All rights reserved.