ColorHSVa

The HSV color space.

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

See also

Constructors

Link copied to clipboard
constructor(h: Double, s: Double, v: Double, alpha: Double = 1.0)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open override val alpha: Double = 1.0
Link copied to clipboard
val h: Double
Link copied to clipboard
open override val hue: Double
Link copied to clipboard
val s: Double
Link copied to clipboard
open override val saturation: Double
Link copied to clipboard

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

Link copied to clipboard
val v: Double

Functions

Link copied to clipboard
open operator override fun div(scale: Double): ColorHSVa
Link copied to clipboard
open operator override fun minus(right: ColorHSVa): ColorHSVa
Link copied to clipboard
open override fun mix(other: ColorHSVa, factor: Double): ColorHSVa
Link copied to clipboard
open fun mixHue(hue: Double, factor: Double): ColorHSVa
Link copied to clipboard
open fun mixSaturation(saturation: Double, factor: Double): ColorHSVa
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.

Link copied to clipboard
open operator override fun plus(right: ColorHSVa): ColorHSVa
Link copied to clipboard
open fun saturate(factor: Double): ColorHSVa

Multiply the saturation by a factor.

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

Multiply the shade by a factor.

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

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

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

Convert into ColorRGBa.

Link copied to clipboard
open override fun toVector4(): Vector4
Link copied to clipboard
Link copied to clipboard
open override fun withHue(hue: Double): ColorHSVa
Link copied to clipboard
open override fun withSaturation(saturation: Double): ColorHSVa