Create an empty colour gradient, you can specify the size of the lookuptable
destructor
add a color stop, pos will be cliped to 0..1
get lookup table, this can cause the lookup table to be recomputed if anything significant has changed.
Initialises the gradient to a sequence of equaly spaced colours.
is the gradient fully opaque?
How many colour stops are there?
get lookup table length
reset the list of gradient colour stops to empty
change lookup table length (8192 max)
Colour Gradient class.
The colour gradient is defined by a list of colour stops where each stop specifies the colour at a given position along the gradient axis. It maintains a lookup table that is used by the rasterizer.