ColorLCHABa

data class ColorLCHABa @JvmOverloads constructor(    val l: Double,     val c: Double,     val h: Double,     val alpha: Double = 1.0,     val ref: ColorXYZa = ColorXYZa.NEUTRAL) : ColorModel<ColorLCHABa> , ReferenceWhitePoint, ShadableColor<ColorLCHABa> , HueShiftableColor<ColorLCHABa> , AlgebraicColor<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

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

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

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

Multiply the shade by a factor.

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

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

Link copied to clipboard
open operator override fun times(scale: Double): ColorLCHABa
Link copied to clipboard
fun toLABa(): ColorLABa
Link copied to clipboard
fun toLSHABa(): ColorLSHABa
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
fun toXYZa(): ColorXYZa

Properties

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

Sources

Link copied to clipboard