openrndr / org.openrndr.color / ColorXSVa

ColorXSVa

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

Constructors

<init>

ColorXSVa(x: Double, s: Double, v: Double, a: Double = 1.0)

Properties

a

val a: Double

s

val s: Double

v

val v: Double

x

val x: Double

Functions

minus

fun minus(other: ColorXSVa): ColorXSVa

mix

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

opacify

adjust opacity by multiplication

fun opacify(factor: Double): ColorXSVa

plus

fun plus(other: ColorXSVa): ColorXSVa

saturate

adjust saturation by multiplication

fun saturate(factor: Double): ColorXSVa

shade

shades the color by multiplication

fun shade(factor: Double): ColorXSVa

shiftHue

shift the hue by a given amount of degrees

fun shiftHue(shiftInDegrees: Double): ColorXSVa

times

fun times(factor: Double): ColorXSVa

toHSVa

fun toHSVa(): ColorHSVa

toRGBa

convert to ColorRGBa

fun toRGBa(): ColorRGBa

Companion Object Functions

fromHSVa

fun fromHSVa(hsva: ColorHSVa): ColorXSVa