ColorLSHABa

data class ColorLSHABa @JvmOverloads constructor(    val l: Double,     val s: Double,     val h: Double,     val alpha: Double = 1.0,     val ref: ColorXYZa = ColorXYZa.NEUTRAL) : ColorModel<ColorLSHABa> , ReferenceWhitePoint

Based on ColorLCHABa, but instead tries to use a normalized chroma.

See also

Constructors

Link copied to clipboard
fun ColorLSHABa(    l: Double,     s: Double,     h: Double,     alpha: Double = 1.0,     ref: ColorXYZa = ColorXYZa.NEUTRAL)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open override fun opacify(factor: Double): ColorLSHABa

Returns a copy of the color with the opacity (alpha) multiplied by a factor.

Link copied to clipboard
fun scaleHue(scale: Double): ColorLSHABa
Link copied to clipboard
fun scaleLuminosity(scale: Double): ColorLSHABa
Link copied to clipboard
fun scaleSaturation(scale: Double): ColorLSHABa
Link copied to clipboard
fun shiftHue(shift: Double): ColorLSHABa
Link copied to clipboard
fun shiftLuminosity(shift: Double): ColorLSHABa
Link copied to clipboard
fun shiftSaturation(shift: Double): ColorLSHABa
Link copied to clipboard
fun toLCHABa(): ColorLCHABa
Link copied to clipboard
open override fun toRGBa(): ColorRGBa

Convert into ColorRGBa.

Link copied to clipboard
open override fun toVector4(): Vector4

Properties

Link copied to clipboard
open override val alpha: Double = 1.0

The opacity of the given color model.

Link copied to clipboard
val h: Double
Link copied to clipboard
val l: Double
Link copied to clipboard
open override val ref: ColorXYZa

The reference white point against which the color is calculated.

Link copied to clipboard
val s: Double
Link copied to clipboard
val saturated: ColorLSHABa

Sources

Link copied to clipboard