ColorHSLUVa

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

Represents a color in the HSLuv color space with an alpha transparency component. HSLuv is a perceptually uniform color space, where hues are uniformly distributed and the perception of color is consistent across the spectrum.

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 transparency value, ranging from 0.0 (fully transparent) to 1.0 (fully opaque).

Link copied to clipboard
val h: Double

The hue of the color in degrees, ranging from 0.0 to 360.0.

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

The luminance of the color, ranging from 0.0 to 1.0.

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

The saturation of the color, ranging from 0.0 to 1.0.

Link copied to clipboard
open override val saturation: Double

Functions

Link copied to clipboard
open operator override fun div(scale: Double): ColorHSLUVa
Link copied to clipboard
open operator override fun minus(right: ColorHSLUVa): ColorHSLUVa
Link copied to clipboard
open override fun mix(other: ColorHSLUVa, factor: Double): ColorHSLUVa
Link copied to clipboard
open fun mixHue(hue: Double, factor: Double): ColorHSLUVa
Link copied to clipboard
open fun mixLuminosity(luminosity: Double, factor: Double): ColorHSLUVa
Link copied to clipboard
open fun mixSaturation(saturation: Double, factor: Double): ColorHSLUVa
Link copied to clipboard
open override fun opacify(factor: Double): ColorHSLUVa
Link copied to clipboard
open operator override fun plus(right: ColorHSLUVa): ColorHSLUVa
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): ColorHSLUVa
Link copied to clipboard
open override fun shade(factor: Double): ColorHSLUVa
Link copied to clipboard
Link copied to clipboard
open fun shiftHue(shiftInDegrees: Double): ColorHSLUVa
Link copied to clipboard
open operator override fun times(scale: Double): ColorHSLUVa
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
Link copied to clipboard
open override fun withHue(hue: Double): ColorHSLUVa
Link copied to clipboard
open override fun withLuminosity(luminosity: Double): ColorHSLUVa
Link copied to clipboard
open override fun withSaturation(saturation: Double): ColorHSLUVa