Colord.ColorXYZ

Fields

Name Type Access Description
X float r/w  
Y float r/w  
Z float r/w  

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.ColorXYZ object
Return type:Colord.ColorXYZ

Allocates a color value.

New in version 0.1.0.

clear()[source]

Initialises a color value.

New in version 0.1.27.

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.

free()[source]

Deallocates a color value.

New in version 0.1.0.

normalize(max, dest)[source]
Parameters:

Normalizes self to y=1.0

New in version 1.1.6.

set(X, Y, Z)[source]
Parameters:
  • X (float) – component value
  • Y (float) – component value
  • Z (float) – component value

Initialises a color value.

New in version 0.1.27.

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:

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.