Skip to content

FiniteGradientPoint

The FiniteGradientPoint struct represents a point in a gradient with a specific position and color.

typedef struct {
double stop;
double r;
double g;
double b;
double a;
} FiniteGradientPoint;
TypeDescription
double stopThe position of the gradient stop (0.0 to 1.0).
double rRed component of the color (0.0 to 1.0).
double gGreen component of the color (0.0 to 1.0).
double bBlue component of the color (0.0 to 1.0).
double aAlpha (opacity) component of the color (0.0 to 1.0).

The stop value should be between 0.0 (start of gradient) and 1.0 (end of gradient).

Each FiniteGradientPoint defines a single point in a gradient. multiple points are needed to form a full gradient.