openrndr / org.openrndr.color / ColorLUVa

ColorLUVa

data class ColorLUVa : ConvertibleToColorRGBa, OpacifiableColor<ColorLUVa>, ShadableColor<ColorLUVa>, AlgebraicColor<ColorLUVa> (source)

Constructors

<init>

ColorLUVa(l: Double, u: Double, v: Double, alpha: Double = 1.0, ref: ColorXYZa)

Properties

alpha

val alpha: Double

l

val l: Double

ref

val ref: ColorXYZa

u

val u: Double

v

val v: Double

Functions

minus

fun minus(other: ColorLUVa): ColorLUVa

opacify

adjust opacity by multiplication

fun opacify(factor: Double): ColorLUVa

plus

fun plus(other: ColorLUVa): ColorLUVa

shade

shades the color by multiplication

fun shade(factor: Double): ColorLUVa

times

fun times(factor: Double): ColorLUVa

toHSLa

fun toHSLa(ref: ColorXYZa = this.ref): ColorHSLa

toHSVa

fun toHSVa(ref: ColorXYZa = this.ref): ColorHSVa

toLABa

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

toLCHUVa

fun toLCHUVa(): ColorLCHUVa

toRGBa

convert to ColorRGBa

fun toRGBa(): ColorRGBafun toRGBa(ref: ColorXYZa = this.ref): ColorRGBa

toXYZa

fun toXYZa(): ColorXYZa

Companion Object Functions

fromRGBa

fun fromRGBa(rgba: ColorRGBa, ref: ColorXYZa = ColorXYZa.NEUTRAL): ColorLUVa

fromXYZa

fun fromXYZa(xyz: ColorXYZa, ref: ColorXYZa): ColorLUVa