Gradient

Calculate an interpolated color on a gradient with multiple points

Members

Functions

get
Color get(Value value)

Obtain the value at the given position. If value is before the first point, the first point's color is returned. If value is after the last point, the last point's color is returned.

Structs

Point
struct Point
points
Point[] points;

Gradient points.

Variables

Meta