ColorHPLUVa

@Serializable
data class ColorHPLUVa(val h: Double, val s: Double, val l: Double, val alpha: Double = 1.0) : ColorModel<ColorHPLUVa> , HueShiftableColor<ColorHPLUVa> , SaturatableColor<ColorHPLUVa> , ShadableColor<ColorHPLUVa> , LuminosityColor<ColorHPLUVa> , AlgebraicColor<ColorHPLUVa> (source)

Represents a color in the HPLUVa (Hue, Perceptual Lightness, Saturation, Alpha) color space. This color space is based on perceptual uniformity, making it suitable for operations like interpolation, shading, and manipulation of hue, saturation, and lightness values.

Constructors

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

Properties

Link copied to clipboard
open override val alpha: Double

The alpha (opacity) component of the color, ranging from fully transparent (0.0) to fully opaque (1.0).

Link copied to clipboard
val h: Double

The hue component of the color, representing the angle on the color wheel in degrees [0, 360).

Link copied to clipboard
open override val hue: Double
Link copied to clipboard
val l: Double

The lightness component of the color, representing the relative brightness 0.0, 1.0.

Link copied to clipboard
open override val luminosity: Double
Link copied to clipboard
val s: Double

The saturation component of the color, representing the intensity of the color 0.0, 1.0.

Link copied to clipboard
open override val saturation: Double

Functions

Link copied to clipboard
open operator override fun div(scale: Double): ColorHPLUVa
Link copied to clipboard
open operator override fun minus(right: ColorHPLUVa): ColorHPLUVa
Link copied to clipboard
open override fun mix(other: ColorHPLUVa, factor: Double): ColorHPLUVa
Link copied to clipboard
open fun mixHue(hue: Double, factor: Double): ColorHPLUVa
Link copied to clipboard
open fun mixLuminosity(luminosity: Double, factor: Double): ColorHPLUVa
Link copied to clipboard
open fun mixSaturation(saturation: Double, factor: Double): ColorHPLUVa
Link copied to clipboard
open override fun opacify(factor: Double): ColorHPLUVa
Link copied to clipboard
open operator override fun plus(right: ColorHPLUVa): ColorHPLUVa
Link copied to clipboard
operator fun ConvertibleToColorRGBa.rangeTo(end: ConvertibleToColorRGBa): ColorSequence

Defines a range between two colors by creating a sequence of colors that transition smoothly from the start color to the end color.

Link copied to clipboard
open fun saturate(factor: Double): ColorHPLUVa
Link copied to clipboard
open override fun shade(factor: Double): ColorHPLUVa
Link copied to clipboard
Link copied to clipboard
open fun shiftHue(shiftInDegrees: Double): ColorHPLUVa
Link copied to clipboard
open operator override fun times(scale: Double): ColorHPLUVa
Link copied to clipboard
fun toLCHUVa(): ColorLCHUVa
Link copied to clipboard
open override fun toRGBa(): ColorRGBa
Link copied to clipboard
open override fun toVector4(): Vector4
Link copied to clipboard
open override fun withHue(hue: Double): ColorHPLUVa
Link copied to clipboard
open override fun withLuminosity(luminosity: Double): ColorHPLUVa
Link copied to clipboard
open override fun withSaturation(saturation: Double): ColorHPLUVa