Color Mask Options
data class ColorMaskOptions(val channel: ColorBand, val value: Int, val colorscale: ColorScaleOptions = ColorScaleOptions(), val drawRange: ClosedRange<Double>? = null)
Per-band mask entry for a multi-scale colorscale (JS/Apple colorscale.masks).
Used when a single sample channel carries the data value and another band (e.g. green) holds discrete mask codes that select which nested colorscale to apply.
Constructors
Link copied to clipboard
constructor(channel: ColorBand, value: Int, colorscale: ColorScaleSpec, drawRange: ClosedRange<Double>? = null)
Builds a mask entry from a ColorScaleSpec, the type colorscale had through 1.6.0.
constructor(channel: ColorBand, value: Int, colorscale: ColorScaleOptions = ColorScaleOptions(), drawRange: ClosedRange<Double>? = null)