Colord.ColorUVW

Fields

Name Type Access Description
U float r/w  
V float r/w  
W float r/w  

Methods

class new ()
  copy (dest)
  dup ()
  free ()
  get_chroma_difference (p2)
  set (U, V, W)
  set_planckian_locus (temp)

Details

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

Allocates a color value.

New in version 1.1.6.

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

Deep copies a color value.

New in version 1.1.6.

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

New in version 1.1.6.

free()[source]

Deallocates a color value.

New in version 1.1.6.

get_chroma_difference(p2)[source]
Parameters:p2 (Colord.ColorUVW) – color
Returns:The Euclidean distance
Return type:float

Gets the chromaticity distance in the CIE 1960 UCS.

New in version 1.1.6.

set(U, V, W)[source]
Parameters:
  • U (float) – component value
  • V (float) – component value
  • W (float) – component value

Initialises a color value.

New in version 1.1.6.

set_planckian_locus(temp)[source]
Parameters:temp (float) – temperature in Kelvin

Sets the CIEUVW color from a Planckian locus of specific temperature.

New in version 1.1.6.