ColorLSHUVa

@Serializable
data class ColorLSHUVa(val l: Double, val s: Double, val h: Double, val alpha: Double = 1.0, val ref: ColorXYZa = ColorXYZa.NEUTRAL) : ColorModel<ColorLSHUVa> , ReferenceWhitePoint, HueShiftableColor<ColorLSHUVa> , SaturatableColor<ColorLSHUVa> , LuminosityColor<ColorLSHUVa> , AlgebraicColor<ColorLSHUVa> (source)

Based on ColorLCHUVa, but instead tries to use a normalized chroma.

See also

Constructors

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

Types

Link copied to clipboard
object Companion

Functions

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

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

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

Multiply the saturation by a factor.

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

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

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

Properties

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

The opacity of the given color model.

Link copied to clipboard
val h: Double
Link copied to clipboard
open override val hue: Double
Link copied to clipboard
val l: Double
Link copied to clipboard
open override val luminosity: Double
Link copied to clipboard
open override val ref: ColorXYZa

The reference white point against which the color is calculated.

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