Gradient

open class Gradient

A class to generate a color map from a given array of colors and the fractions that the colors represent by interpolating between their HSV values. This color map is to be used in the HeatmapTileProvider.

Constructors

Link copied to clipboard
constructor(colors: Array<Int>, startPoints: Array<Float>)
Creates a Gradient with the given colors and starting points.
constructor(colors: Array<Int>, startPoints: Array<Float>, colorMapSize: Int)
Creates a Gradient with the given colors and starting points which creates a colorMap of given size.

Properties

Link copied to clipboard
Size of a color map for the heatmap
Link copied to clipboard
open var mColors: Array<Int>
The colors to be used in the gradient
Link copied to clipboard
The starting point for each color, given as a percentage of the maximum intensity