Colord.ColorYxy

Fields

Name Type Access Description
Y float r/w  
x float r/w  
y float r/w  

Methods

class new ()
  copy (dest)
  dup ()
  free ()
  set (Y, x, y)
  to_uvw (dest)
  to_xyz (dest)

Details

class Colord.ColorYxy
classmethod new()[source]
Returns:A newly allocated Colord.ColorYxy object
Return type:Colord.ColorYxy

Allocates a color value.

New in version 0.1.0.

copy(dest)[source]
Parameters:dest (Colord.ColorYxy) – the destination color

Deep copies a color value.

New in version 0.1.27.

dup()[source]
Return type:Colord.ColorYxy

New in version 0.1.27.

free()[source]

Deallocates a color value.

New in version 0.1.0.

set(Y, x, y)[source]
Parameters:
  • Y (float) – component value
  • x (float) – component value
  • y (float) – component value

Initialises a color value.

New in version 0.1.27.

to_uvw(dest)[source]
Parameters:dest (Colord.ColorUVW) – the destination color

Convert from one color format to another.

New in version 1.1.6.

to_xyz(dest)[source]
Parameters:dest (Colord.ColorXYZ) – the destination color

Convert from one color format to another.

New in version 0.1.27.