openrndr / org.openrndr.color / ColorHSVa

ColorHSVa

data class ColorHSVa (source)

A color respresentation in HSVa space

Parameters

h - hue in n * [0, 360)

s - value in 0,1

v - value in 0,1

a - alpha in 0,1

Constructors

<init>

A color respresentation in HSVa space

ColorHSVa(h: Double, s: Double, v: Double, a: Double = 1.0)

Properties

a

alpha in 0,1

val a: Double

h

hue in n * [0, 360)

val h: Double

s

value in 0,1

val s: Double

unit

a unit presentation of this ColorHSVa, essentially brings the hue back in [0, 360)

val unit: ColorHSVa

v

value in 0,1

val v: Double

Functions

invoke

operator fun invoke(h: Double = this.h, s: Double = this.s, v: Double = this.v, a: Double = this.a): ColorHSVa

mix

fun mix(other: ColorHSVa, x: Double): ColorHSVa

scaleHue

fun scaleHue(scale: Double): ColorHSVa

scaleSaturation

fun scaleSaturation(scale: Double): ColorHSVa

scaleValue

fun scaleValue(scale: Double): ColorHSVa

shiftHue

fun shiftHue(shift: Double): ColorHSVa

shiftSaturation

fun shiftSaturation(shift: Double): ColorHSVa

shiftValue

fun shiftValue(shift: Double): ColorHSVa

toRGBa

fun toRGBa(): ColorRGBa

Companion Object Functions

fromRGBa

fun fromRGBa(rgb: ColorRGBa): ColorHSVa