openrndr / org.openrndr.color / ColorXSLa

ColorXSLa

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

Constructors

<init>

ColorXSLa(x: Double, s: Double, l: Double, a: Double)

Properties

a

val a: Double

l

val l: Double

s

val s: Double

x

val x: Double

Functions

minus

fun minus(other: ColorXSLa): ColorXSLa

mix

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

opacify

adjust opacity by multiplication

fun opacify(factor: Double): ColorXSLa

plus

fun plus(other: ColorXSLa): ColorXSLa

saturate

adjust saturation by multiplication

fun saturate(factor: Double): ColorXSLa

shade

shades the color by multiplication

fun shade(factor: Double): ColorXSLa

shiftHue

shift the hue by a given amount of degrees

fun shiftHue(shiftInDegrees: Double): ColorXSLa

times

fun times(factor: Double): ColorXSLa

toHSLa

fun toHSLa(): ColorHSLa

toRGBa

convert to ColorRGBa

fun toRGBa(): ColorRGBa

Companion Object Functions

fromHSLa

fun fromHSLa(hsla: ColorHSLa): ColorXSLa