ColorScaleLegendDisabled

A ColorScale maps numeric values to a color palette.

Constructors

Link copied to clipboard
constructor(colors: List<Color>, domain: List<Double>? = null, stops: List<Double>? = null)
constructor(colorStops: List<ColorStop>, range: ClosedRange<Double>? = null, normalized: Boolean = false, positions: List<Double>? = null)
constructor(options: ColorScaleOptions)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard
fun color(forValue: Double, bypassMap: Boolean = false): Color

Returns the color for the given value.

Link copied to clipboard
fun colors(count: Int): List<Color>

Returns an array of equidistant colors.

Link copied to clipboard
fun getColorRelative(position: Double): Color
Link copied to clipboard
fun getRamp(range: ClosedRange<Double>? = null, totalColors: Int = 0, interval: Double = 0.0, breaks: List<Double>? = null, interpolate: Boolean = true, normalized: Boolean = false, easing: EasingCurve? = null): ColorRampResult
Link copied to clipboard
fun position(forValue: Double, bypassMap: Boolean = false): Double
Link copied to clipboard
fun scale(min: Double, max: Double)
Link copied to clipboard
fun setColors(colors: List<Color>)
Link copied to clipboard
fun setDomain(domain: List<Double>)
Link copied to clipboard
fun setPositions(positions: List<Double>)
Link copied to clipboard
fun setStops(count: Int)
fun setStops(stops: List<Double>)
Link copied to clipboard
fun stopIndex(forValue: Double): Int