Colord.ColorXYZ¶
Fields¶
Name  | 
Type  | 
Access  | 
Description  | 
|---|---|---|---|
X  | 
r/w  | 
||
Y  | 
r/w  | 
||
Z  | 
r/w  | 
Methods¶
class  | 
  | 
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
Details¶
- class Colord.ColorXYZ¶
 - classmethod new()[source]¶
 - Returns:
 A newly allocated
Colord.ColorXYZobject- Return type:
 
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.
- 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.
- to_cct()[source]¶
 - Return type:
 
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 whitepointdest (
Colord.ColorUVW) – the destination color
Convert from one color format to another.
New in version 1.1.6.
- to_yxy(dest)[source]¶
 - Parameters:
 dest (
Colord.ColorYxy) – the destination color
Convert from one color format to another.
New in version 0.1.27.