---
title: "WhitePoint"
description: "Class for constructing white points used in [RGB][Rgb] color space. The value is stored in the
CIE xyY color space. The Y component of the white point is assumed to be 1."
type: "class"
---

<div class='type'>Class</div>


<a id='references'></a>

<div class='sourceset sourceset-common'>Common</div>


```kotlin
data class WhitePoint(val x: Float, val y: Float)
```


Class for constructing white points used in `RGB` color space. The value is stored in the
CIE xyY color space. The Y component of the white point is assumed to be 1.


## Secondary Constructors

```kotlin
constructor(x: Float, y: Float, z: Float) : this(x, y, z, x + y + z)
```


Illuminant for CIE XYZ white point


```kotlin
private constructor(x: Float, y: Float, z: Float, sum: Float) : this(x / sum, y / sum)
```


