openrndr / org.openrndr.color / ColorLCHUVa

ColorLCHUVa

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

Constructors

<init>

ColorLCHUVa(l: Double, c: Double, h: Double, alpha: Double = 1.0, ref: ColorXYZa = ColorXYZa.NEUTRAL)

Properties

alpha

val alpha: Double

c

val c: Double

h

val h: Double

l

val l: Double

ref

val ref: ColorXYZa

Functions

minus

fun minus(other: ColorLCHUVa): ColorLCHUVa

mix

fun mix(other: ColorLCHUVa, factor: Double): ColorLCHUVa

opacify

adjust opacity by multiplication

fun opacify(factor: Double): ColorLCHUVa

plus

fun plus(other: ColorLCHUVa): ColorLCHUVa

shade

shades the color by multiplication

fun shade(factor: Double): ColorLCHUVa

shiftHue

shift the hue by a given amount of degrees

fun shiftHue(shiftInDegrees: Double): ColorLCHUVa

times

fun times(factor: Double): ColorLCHUVa

toLSHUVa

fun toLSHUVa(): ColorLSHUVa

toLUVa

fun toLUVa(): ColorLUVa

toRGBa

convert to ColorRGBa

fun toRGBa(): ColorRGBa

Companion Object Functions

findMaxChroma

fun findMaxChroma(l: Double, h: Double, ref: ColorXYZa): Double

fromLUVa

fun fromLUVa(luva: ColorLUVa): ColorLCHUVa