Maven module :un.engine : engine-ui :
Class : un.engine.ui.io.RSFunctions
Extends/Implements : un.api.predicate.FunctionResolver
Subclasses : -

author  Johann Sorel


Variables : INSTANCE
Functions : resolve, rotateHSL, rotateAlpha, colorfill, lineargradientfill, radialgradientfill, imagefill, plainbrush, font, glyph


public FunctionResolver INSTANCE


public Function resolve (Chars name, Expression[] parameters)


Rotate color in HSL.
This operation is similar to image RotateColorOperator.
param  color
param  h , This value will be added to the hue and wrapped to 0 - 360
param  s , This value will be multiplied to the pixel saturation and clipped to 0 - 1
param  l , This value will be multiplied to the pixel lightning and clipped to 0 - 1
return  rotated color
public Color rotateHSL (Color color, double h, double s, double l)


Adjust color alpha component.
param  color
param  r, This value will be multiplied to the pixel alpha and clipped to 0 - 1
return
public Color rotateAlpha (Color color, double r)

public Paint colorfill (Color color)

public Paint lineargradientfill (Object candidate, Expression[] expressions)

public Paint radialgradientfill (Object candidate, Expression[] expressions)

public Paint imagefill (Object candidate, Expression[] expressions)

public PlainBrush plainbrush (double width, Chars cap)

public Font font (Chars families, double size, Chars weight)

public Geometry glyph (Chars family, Chars unicode)