openrndr / org.openrndr.color / ColorHSLa

ColorHSLa

data class ColorHSLa (source)

Constructors

<init>

ColorHSLa(h: Double, s: Double, l: Double, a: Double = 1.0)

Properties

a

val a: Double

h

val h: Double

l

val l: Double

s

val s: Double

unit

val unit: ColorHSLa

Functions

invoke

operator fun invoke(h: Double = this.h, s: Double = this.s, l: Double = this.l, a: Double = this.a): ColorHSLa

mix

fun mix(other: ColorHSLa, x: Double): ColorHSLa

scaleHue

fun scaleHue(shift: Double): ColorHSLa

scaleSaturation

fun scaleSaturation(scale: Double): ColorHSLa

scaleValue

fun scaleValue(scale: Double): ColorHSLa

shiftHue

fun shiftHue(shift: Double): ColorHSLa

shiftSaturation

fun shiftSaturation(shift: Double): ColorHSLa

shiftValue

fun shiftValue(shift: Double): ColorHSLa

toHSVa

fun toHSVa(): ColorHSVa

toLABa

fun toLABa(ref: ColorXYZa = ColorXYZa.NEUTRAL): ColorLABa

toLCHABa

fun toLCHABa(ref: ColorXYZa = ColorXYZa.NEUTRAL): ColorLCHABa

toLCHUVa

fun toLCHUVa(ref: ColorXYZa = ColorXYZa.NEUTRAL): ColorLCHUVa

toLUVa

fun toLUVa(ref: ColorXYZa = ColorXYZa.NEUTRAL): ColorLUVa

toRGBa

fun toRGBa(): ColorRGBa

toString

fun toString(): String

toXSLa

fun toXSLa(): ColorXSLa

toXYZa

fun toXYZa(): ColorXYZa

Companion Object Functions

fromRGBa

fun fromRGBa(rgb: ColorRGBa): ColorHSLa