ColorLABa

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

ColorLABa
Link copied to clipboard
fun ColorLABa(l: Double, a: Double, b: Double, alpha: Double = 1.0, ref: ColorXYZa = ColorXYZa.NEUTRAL)

Types

Companion
Link copied to clipboard
object Companion

Functions

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

Multiply the opacity by a factor

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

Multiply the shade by a factor.

times
Link copied to clipboard
open operator override fun times(scale: Double): ColorLABa
toHSLa
Link copied to clipboard
fun toHSLa(): ColorHSLa
toHSVa
Link copied to clipboard
fun toHSVa(): ColorHSVa
toLCHABa
Link copied to clipboard
fun toLCHABa(): ColorLCHABa
toLSHABa
Link copied to clipboard
fun toLSHABa(): ColorLSHABa
toLUVa
Link copied to clipboard
fun toLUVa(): ColorLUVa
toRGBa
Link copied to clipboard
open override fun toRGBa(): ColorRGBa

Convert into ColorRGBa.

toVector4
Link copied to clipboard
open override fun toVector4(): Vector4
toXYZa
Link copied to clipboard
fun toXYZa(): ColorXYZa

Properties

a
Link copied to clipboard
val a: Double
alpha
Link copied to clipboard
val alpha: Double = 1.0
b
Link copied to clipboard
val b: Double
l
Link copied to clipboard
val l: Double
ref
Link copied to clipboard
val ref: ColorXYZa