ColorLCHABa

The CIELChAB color space is the cylindrical representation of the CIELAB color space.

See also

Parameters

l

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

c

chroma

h

hue in degrees, where a full rotation is 360.0 degrees

alpha

alpha as a percentage between 0.0 and 1.0

ref

reference white against which the color values are calculated

Constructors

ColorLCHABa
Link copied to clipboard
fun ColorLCHABa(l: Double, c: Double, h: 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): ColorLCHABa
minus
Link copied to clipboard
open operator override fun minus(right: ColorLCHABa): ColorLCHABa
mix
Link copied to clipboard
open override fun mix(other: ColorLCHABa, factor: Double): ColorLCHABa
opacify
Link copied to clipboard
open override fun opacify(factor: Double): ColorLCHABa

Multiply the opacity by a factor

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

Multiply the shade by a factor.

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

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

times
Link copied to clipboard
open operator override fun times(scale: Double): ColorLCHABa
toLABa
Link copied to clipboard
fun toLABa(): ColorLABa
toLSHABa
Link copied to clipboard
fun toLSHABa(): ColorLSHABa
toRGBa
Link copied to clipboard
open override fun toRGBa(): ColorRGBa

Convert into ColorRGBa.

toXYZa
Link copied to clipboard
fun toXYZa(): ColorXYZa

Properties

alpha
Link copied to clipboard
val alpha: Double = 1.0
c
Link copied to clipboard
val c: Double
h
Link copied to clipboard
val h: Double
l
Link copied to clipboard
val l: Double
ref
Link copied to clipboard
val ref: ColorXYZa