openrndr / org.openrndr.color / ColorLABa

ColorLABa

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

Constructors

<init>

ColorLABa(l: Double, a: Double, b: Double, alpha: Double = 1.0, ref: ColorXYZa = ColorXYZa.NEUTRAL)

Properties

a

val a: Double

alpha

val alpha: Double

b

val b: Double

l

val l: Double

ref

val ref: ColorXYZa

Functions

minus

fun minus(other: ColorLABa): ColorLABa

opacify

adjust opacity by multiplication

fun opacify(factor: Double): ColorLABa

plus

fun plus(other: ColorLABa): ColorLABa

shade

shades the color by multiplication

fun shade(factor: Double): ColorLABa

times

fun times(factor: Double): ColorLABa

toHSLa

fun toHSLa(): ColorHSLa

toHSVa

fun toHSVa(): ColorHSVa

toLCHABa

fun toLCHABa(): ColorLCHABa

toLSHABa

fun toLSHABa(): ColorLSHABa

toLUVa

fun toLUVa(): ColorLUVa

toRGBa

convert to ColorRGBa

fun toRGBa(): ColorRGBa

toXYZa

fun toXYZa(): ColorXYZa

Companion Object Functions

fromRGBa

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

fromXYZa

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