See also

Parameters

h

hue in degrees, where a full rotation is 360.0 degrees

s

saturation as a percentage between 0.0 and 1.0

v

value/brightness as a percentage between 0.0 and 1.0

a

alpha as a percentage between 0.0 and 1.0

Constructors

ColorHSVa
Link copied to clipboard
fun ColorHSVa(h: Double, s: Double, v: Double, a: Double = 1.0)

Types

Companion
Link copied to clipboard
object Companion

Functions

div
Link copied to clipboard
open operator override fun div(scale: Double): ColorHSVa
invoke
Link copied to clipboard
operator fun invoke(h: Double = this.h, s: Double = this.s, v: Double = this.v, a: Double = this.a): ColorHSVa
minus
Link copied to clipboard
open operator override fun minus(right: ColorHSVa): ColorHSVa
mix
Link copied to clipboard
open override fun mix(other: ColorHSVa, factor: Double): ColorHSVa
plus
Link copied to clipboard
open operator override fun plus(right: ColorHSVa): ColorHSVa
saturate
Link copied to clipboard
open override fun saturate(factor: Double): ColorHSVa

Multiply the saturation by a factor.

shade
Link copied to clipboard
open override fun shade(factor: Double): ColorHSVa

Multiply the shade by a factor.

shiftHue
Link copied to clipboard
open override fun shiftHue(shiftInDegrees: Double): ColorHSVa

Shift the hue of a color by the given amount of degrees.

times
Link copied to clipboard
open operator override fun times(scale: Double): ColorHSVa
toRGBa
Link copied to clipboard
open override fun toRGBa(): ColorRGBa

Convert into ColorRGBa.

toXSVa
Link copied to clipboard
fun toXSVa(): ColorXSVa

Properties

a
Link copied to clipboard
val a: Double = 1.0
h
Link copied to clipboard
val h: Double
s
Link copied to clipboard
val s: Double
unit
Link copied to clipboard
val unit: ColorHSVa

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

v
Link copied to clipboard
val v: Double