Gradient

constructor(colors: IntArray, startPoints: FloatArray, colorMapSize: Int = DEFAULT_COLOR_MAP_SIZE)

Parameters

colors

The colors to be used in the gradient.

startPoints

The starting point for each color, given as a percentage of the maximum intensity. This is given as an array of floats with values in the interval 0, 1.

colorMapSize

The size of the colorMap to be generated by the Gradient. Default value is 1000.