ColorScaleOptions

data class ColorScaleOptions(var stops: List<Any> = emptyList(), var positions: List<Double>? = null, var interval: Double = 0.0, var range: ClosedRange<Double>? = null, var normalized: Boolean = false, var interpolate: Boolean = true, var masks: List<ColorMaskOptions>? = null, var roundDown: Boolean = false)

Color ramp for encoded/sample layers: stops, optional positions, data range, and interpolation flags. Nested masks select a scale from a discrete band (e.g. precip type).

Constructors

Link copied to clipboard
constructor(stops: List<Any> = emptyList(), positions: List<Double>? = null, interval: Double = 0.0, range: ClosedRange<Double>? = null, normalized: Boolean = false, interpolate: Boolean = true, masks: List<ColorMaskOptions>? = null, roundDown: Boolean = false)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

When true, blend between stops; when false, step.

Link copied to clipboard

Quantize interval; 0 means none.

Link copied to clipboard

Optional per-code nested scales (ColorMaskOptions).

Link copied to clipboard

When true, samples are treated as 0–1.

Link copied to clipboard

Optional stop positions when not implied by stops.

Link copied to clipboard

Data domain mapped onto the ramp; inferred from stops when null.

Link copied to clipboard

When true, sample values round toward the lower stop.

Link copied to clipboard
var stops: List<Any>

Color stops (ColorStop or value/color pairs).