ColorLABa

@Serializable
data class ColorLABa(val l: Double, val a: Double, val b: Double, val alpha: Double = 1.0, val ref: ColorXYZa = ColorXYZa.NEUTRAL) : ColorModel<ColorLABa> , ReferenceWhitePoint, ShadableColor<ColorLABa> , LuminosityColor<ColorLABa> , AlgebraicColor<ColorLABa> (source)

The CIELAB color space, more commonly known as Lab.

Parameters

l

lightness, between 0.0 (black) and 100.0 (white)

a

unbounded a* axis, relative to the green–red opponent colors, with negative values toward green and positive values toward red

b

unbounded b* axis, relative to the blue–yellow opponent colors, with negative values toward blue and positive values toward yellow

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, a: Double, b: Double, alpha: Double = 1.0, ref: ColorXYZa = ColorXYZa.NEUTRAL)

Types

Link copied to clipboard
object Companion

Properties

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

Functions

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

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

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

Multiply the shade by a factor.

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