ColorLUVa

@Serializable
data class ColorLUVa(val l: Double, val u: Double, val v: Double, val alpha: Double = 1.0, val ref: ColorXYZa) : ColorModel<ColorLUVa> , ReferenceWhitePoint, ShadableColor<ColorLUVa> , LuminosityColor<ColorLUVa> , AlgebraicColor<ColorLUVa> (source)

The CIELUV color space

Parameters

l

luminance, in a range of 0.0 (darkest) to 100.0 (brightest)

u

unbounded chromaticity coordinate U

v

unbounded chromaticity coordinate V

alpha

alpha as a percentage between 0.0 and 1.0

ref

reference white against which the color values are calculated

Constructors

Link copied to clipboard
constructor(l: Double, u: Double, v: Double, alpha: Double = 1.0, ref: ColorXYZa)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open operator override fun div(scale: Double): ColorLUVa
Link copied to clipboard
open operator override fun minus(right: ColorLUVa): ColorLUVa
Link copied to clipboard
open fun mix(other: ColorLUVa, factor: Double): ColorLUVa
Link copied to clipboard
open fun mixLuminosity(luminosity: Double, factor: Double): ColorLUVa
Link copied to clipboard
open override fun opacify(factor: Double): ColorLUVa

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

Link copied to clipboard
open operator override fun plus(right: ColorLUVa): ColorLUVa
Link copied to clipboard
open override fun shade(factor: Double): ColorLUVa

Multiply the shade by a factor.

Link copied to clipboard
open fun shadeLuminosity(factor: Double): ColorLUVa
Link copied to clipboard
open operator override fun times(scale: Double): ColorLUVa
Link copied to clipboard
fun toHSLa(ref: ColorXYZa = this.ref): ColorHSLa
Link copied to clipboard
fun toHSVa(ref: ColorXYZa = this.ref): ColorHSVa
Link copied to clipboard
fun toLABa(ref: ColorXYZa = this.ref): ColorLABa
Link copied to clipboard
Link copied to clipboard
open override fun toRGBa(): ColorRGBa

Convert into ColorRGBa.

fun toRGBa(ref: ColorXYZa = this.ref): ColorRGBa
Link copied to clipboard
open override fun toVector4(): Vector4
Link copied to clipboard
Link copied to clipboard
open override fun withLuminosity(luminosity: Double): ColorLUVa

Properties

Link copied to clipboard
open override val alpha: Double = 1.0
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
Link copied to clipboard
val u: Double
Link copied to clipboard
val v: Double