ColorHSVa

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

alpha

alpha as a percentage between 0.0 and 1.0

Constructors

ColorHSVa
Link copied to clipboard
fun ColorHSVa(h: Double, s: Double, v: Double, alpha: 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
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
opacify
Link copied to clipboard
open override fun opacify(factor: Double): ColorHSVa

Returns a copy of the color with the opacity (alpha) multiplied by a factor.

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.

toVector4
Link copied to clipboard
open override fun toVector4(): Vector4
toXSVa
Link copied to clipboard
fun toXSVa(): ColorXSVa

Properties

a
Link copied to clipboard
val a: Double
alpha
Link copied to clipboard
open override val alpha: 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