Colord.ColorLab

Fields

Name Type Access Description
L float r/w  
a float r/w  
b float r/w  

Methods

class new ()
  copy (dest)
  delta_e76 (p2)
  dup ()
  free ()
  set (L, a, b)

Details

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

Allocates a color value.

New in version 0.1.32.

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

Deep copies a color value.

New in version 0.1.32.

delta_e76(p2)[source]
Parameters:p2 (Colord.ColorLab) – Lab value 2
Returns:distance metric, where JND ΔE ≈ 2.3
Return type:float

Calculates the ΔE of two colors using the 1976 formula.

New in version 0.1.32.

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

New in version 0.1.32.

free()[source]

Deallocates a color value.

New in version 0.1.32.

set(L, a, b)[source]
Parameters:
  • L (float) – component value
  • a (float) – component value
  • b (float) – component value

Initialises a color value.

New in version 0.1.32.