ColorYxya

data class ColorYxya @JvmOverloads constructor(yy: Double, x: Double, y: Double, alpha: Double) : ColorModel<ColorYxya>

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

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

Types

Companion
Link copied to clipboard
object Companion

Functions

opacify
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.

toRGBa
Link copied to clipboard
open override fun toRGBa(): ColorRGBa

Convert into ColorRGBa.

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

Properties

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