The OpenD Programming Language

Gradient.getColorStopRGBA

Gets the color and offset information at the given index for a gradient pattern. Values of index are 0 to 1 less than the number returned by getColorStopCount().

class Gradient
void
getColorStopRGBA
(
int index
,
out double offset
,)

Parameters

index int

index of the stop to return data for

offset double

output: Returns the offset of the color stop

color RGBA

output: Returns the color of the color stop

TODO: Array/Range - like interface?

Meta