openrndr / org.openrndr.color / ColorLCHABa

ColorLCHABa

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

Constructors

<init>

ColorLCHABa(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: ColorLCHABa): ColorLCHABa

mix

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

opacify

adjust opacity by multiplication

fun opacify(factor: Double): ColorLCHABa

plus

fun plus(other: ColorLCHABa): ColorLCHABa

shade

shades the color by multiplication

fun shade(factor: Double): ColorLCHABa

shiftHue

shift the hue by a given amount of degrees

fun shiftHue(shiftInDegrees: Double): ColorLCHABa

times

fun times(factor: Double): ColorLCHABa

toLABa

fun toLABa(): ColorLABa

toLSHABa

fun toLSHABa(): ColorLSHABa

toRGBa

convert to ColorRGBa

fun toRGBa(): ColorRGBa

toXYZa

fun toXYZa(): ColorXYZa

Companion Object Functions

findMaxChroma

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

fromLABa

fun fromLABa(laba: ColorLABa): ColorLCHABa