Colord.ColorXYZ¶
Methods¶
| class | new() | 
| clear() | |
| copy(dest) | |
| dup() | |
| free() | |
| normalize(max, dest) | |
| set(X, Y, Z) | |
| to_cct() | |
| to_uvw(whitepoint, dest) | |
| to_yxy(dest) | 
Details¶
- 
class Colord.ColorXYZ¶
- 
classmethod new()[source]¶
- Returns: - A newly allocated - Colord.ColorXYZobject- Return type: - Colord.ColorXYZ- Allocates a color value. - New in version 0.1.0. 
 - 
copy(dest)[source]¶
- Parameters: - dest ( - Colord.ColorXYZ) – the destination color- Deep copies a color value. - New in version 0.1.27. 
 - 
dup()[source]¶
- Return type: - Colord.ColorXYZ- New in version 0.1.27. 
 - 
normalize(max, dest)[source]¶
- Parameters: - max (float) –
- dest (Colord.ColorXYZ) – the destination color
 - Normalizes self to y=1.0 - New in version 1.1.6. 
- max (
 - 
to_cct()[source]¶
- Return type: - float- Gets the correlated color temperature for the XYZ value. - New in version 1.1.6. 
 - 
to_uvw(whitepoint, dest)[source]¶
- Parameters: - whitepoint (Colord.ColorXYZ) – the whitepoint
- dest (Colord.ColorUVW) – the destination color
 - Convert from one color format to another. - New in version 1.1.6. 
- whitepoint (
 - 
to_yxy(dest)[source]¶
- Parameters: - dest ( - Colord.ColorYxy) – the destination color- Convert from one color format to another. - New in version 0.1.27. 
 
- 
classmethod