ColorLCHUVa

The CIELChUV color space is the cylindrical representation of the CIELUV color space.

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

See also

Constructors

Link copied to clipboard
constructor(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): ColorLCHUVa
Link copied to clipboard
open operator override fun minus(right: ColorLCHUVa): ColorLCHUVa
Link copied to clipboard
open override fun mix(other: ColorLCHUVa, factor: Double): ColorLCHUVa
Link copied to clipboard
open fun mixChroma(target: Double, factor: Double): ColorLCHUVa
Link copied to clipboard
open fun mixHue(hue: Double, factor: Double): ColorLCHUVa
Link copied to clipboard
open fun mixLuminosity(luminosity: Double, factor: Double): ColorLCHUVa
Link copied to clipboard
open fun modulateChroma(factor: Double): ColorLCHUVa
Link copied to clipboard
open override fun opacify(factor: Double): ColorLCHUVa

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

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

Multiply the shade by a factor.

Link copied to clipboard
Link copied to clipboard
open fun shiftChroma(shift: Double): ColorLCHUVa
Link copied to clipboard
open fun shiftHue(shiftInDegrees: Double): ColorLCHUVa

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

Link copied to clipboard
open operator override fun times(scale: Double): ColorLCHUVa
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
open override fun withChroma(chroma: Double): ColorLCHUVa
Link copied to clipboard
open override fun withHue(hue: Double): ColorLCHUVa
Link copied to clipboard
open override fun withLuminosity(luminosity: Double): ColorLCHUVa

Properties

Link copied to clipboard
open override val alpha: Double = 1.0
Link copied to clipboard
val c: Double
Link copied to clipboard
open override val chroma: Double
Link copied to clipboard
val h: Double
Link copied to clipboard
open override val hue: 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