colour.plotting.ColourSwatch#

class colour.plotting.ColourSwatch(RGB: ArrayLike, name: str | None = <factory>)[source]#

Bases: object

Define a data structure for a colour swatch.

Parameters:
  • RGB (ArrayLike) – RGB Colour.

  • name (str | None) – Colour name.

__eq__(other)#

Return self==value.

__hash__ = None#
__init__(RGB: ArrayLike, name: str | None = <factory>) None#
Parameters:
  • RGB (ArrayLike)

  • name (str | None)

Return type:

None

__repr__()#

Return repr(self).

__weakref__#

list of weak references to the object (if defined)