Parameters

x

first chromaticity coordinate, mix of the three CIE RGB curves chosen to be nonnegative

y

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

z

second chromaticity coordinate, quasi-equal to blue

a

alpha as a percentage between 0.0 and 1.0

Constructors

ColorXYZa
Link copied to clipboard
fun ColorXYZa(x: Double, y: Double, z: Double, a: Double = 1.0)

Types

Companion
Link copied to clipboard
object Companion

Functions

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

Multiply the opacity by a factor

plus
Link copied to clipboard
open operator override fun plus(right: ColorXYZa): ColorXYZa
times
Link copied to clipboard
open operator override fun times(scale: Double): ColorXYZa
toHSLa
Link copied to clipboard
fun toHSLa(): ColorHSLa
toHSVa
Link copied to clipboard
fun toHSVa(): ColorHSVa
toLABa
Link copied to clipboard
fun toLABa(ref: ColorXYZa): ColorLABa
toLUVa
Link copied to clipboard
fun toLUVa(ref: ColorXYZa): ColorLUVa
toRGBa
Link copied to clipboard
open override fun toRGBa(): ColorRGBa

Convert into ColorRGBa.

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

Properties

a
Link copied to clipboard
val a: Double = 1.0
minValue
Link copied to clipboard
val minValue: Double
x
Link copied to clipboard
val x: Double
y
Link copied to clipboard
val y: Double
z
Link copied to clipboard
val z: Double