Colord.ColorSwatch

Fields

None

Methods

class

new ()

dup ()

free ()

get_name ()

get_value ()

set_name (name)

set_value (value)

Details

class Colord.ColorSwatch
classmethod new()[source]
Returns:

A newly allocated Colord.ColorSwatch object

Return type:

Colord.ColorSwatch

Allocates a color value.

New in version 0.1.32.

dup()[source]
Return type:

Colord.ColorSwatch

New in version 0.1.32.

free()[source]

Deallocates a color swatch.

New in version 0.1.32.

get_name()[source]
Return type:

str

New in version 0.1.32.

get_value()[source]
Return type:

Colord.ColorLab

New in version 0.1.32.

set_name(name)[source]
Parameters:

name (str) – component name

Initialises a swatch name.

New in version 0.1.32.

set_value(value)[source]
Parameters:

value (Colord.ColorLab) – component value

Initialises a swatch value.

New in version 0.1.32.