ColorYxya

@Serializable
data class ColorYxya(val yy: Double, val x: Double, val y: Double, val alpha: Double = 1.0) : ColorModel<ColorYxya> (source)

The Yxy color space, also known as the xyY color space.

Parameters

yy

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

x

first chromaticity coordinate, in a range of 0.0 to 1.0

y

second chromaticity coordinate, in a range of 0.0 to 1.0

alpha

alpha as a percentage between 0.0 and 1.0

Constructors

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

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open override fun opacify(factor: Double): ColorYxya

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

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

Properties

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