ColorXSVa

@Serializable
data class ColorXSVa @JvmOverloads constructor(val x: Double, val s: Double, val v: Double, val alpha: Double = 1.0) : ColorModel<ColorXSVa> , ShadableColor<ColorXSVa> , HueShiftableColor<ColorXSVa> , SaturatableColor<ColorXSVa> , AlgebraicColor<ColorXSVa> (source)

Practically identical to ColorHSVa, but for mapping colors to classical painter's scheme of complementary colors.

See also

Constructors

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

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open operator override fun div(scale: Double): ColorXSVa
Link copied to clipboard
open operator override fun minus(right: ColorXSVa): ColorXSVa
Link copied to clipboard
open override fun mix(other: ColorXSVa, factor: Double): ColorXSVa
Link copied to clipboard
open fun mixHue(hue: Double, factor: Double): ColorXSVa
Link copied to clipboard
open fun mixSaturation(saturation: Double, factor: Double): ColorXSVa
Link copied to clipboard
open override fun opacify(factor: Double): ColorXSVa

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

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

Multiply the saturation by a factor.

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

Multiply the shade by a factor.

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

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

Link copied to clipboard
open operator override fun times(scale: Double): ColorXSVa
Link copied to clipboard
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
open override fun withHue(hue: Double): ColorXSVa
Link copied to clipboard
open override fun withSaturation(saturation: Double): ColorXSVa

Properties

Link copied to clipboard
open override val alpha: Double = 1.0

The opacity of the given color model.

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
val v: Double
Link copied to clipboard
val x: Double