ColorXYZa

@Serializable
data class ColorXYZa(val x: Double, val y: Double, val z: Double, val alpha: Double = 1.0) : ColorModel<ColorXYZa> , AlgebraicColor<ColorXYZa> (source)

The CIE XYZ color space.

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 1.0 (brightest)

z

second chromaticity coordinate, quasi-equal to blue

alpha

alpha as a percentage between 0.0 and 1.0

Constructors

Link copied to clipboard
constructor(x: Double, y: Double, z: Double, alpha: Double = 1.0)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open override val alpha: Double = 1.0
Link copied to clipboard
Link copied to clipboard
val x: Double
Link copied to clipboard
val y: Double
Link copied to clipboard
val z: Double

Functions

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

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

Link copied to clipboard
open operator override fun plus(right: ColorXYZa): ColorXYZa
Link copied to clipboard
open operator override fun times(scale: Double): ColorXYZa
Link copied to clipboard
Link copied to clipboard
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