Class Swatch
Build from Swatch.h
Krita 4.2.0

The Swatch class is a thin wrapper around the KisSwatch class.

A Swatch is a single color that is part of a palette, that has a name and an id. A Swatch color can be a spot color.

Methods

Swatch(rhs: Swatch, parent: QObject = None) Swatch(rhs: Swatch) color()ManagedColor id()str isValid()bool name()str setColor(color: ManagedColor) setId(id: str) setName(name: str) setSpotColor(spotColor: bool) spotColor()bool

Re-implemented methods

Swatch()

Member documentation

Swatch(rhs: Swatch, parent: QObject = None)
Krita 4.2.0Krita master

Parameters

rhs(no description provided)
parent(no description provided)

Return

(no description provided)

Swatch()
Krita 4.2.0

Return

(no description provided)

Swatch(rhs: Swatch)
Krita 4.2.0

Parameters

rhs(no description provided)

Return

(no description provided)

Krita 4.2.0

Return

(no description provided)

id()str
Krita 4.2.0

Return

(no description provided)

isValid()bool
Krita 4.2.0

Return

(no description provided)

name()str
Krita 4.2.0

Return

(no description provided)

Krita 4.2.0

Parameters

color(no description provided)
setId(id: str)
Krita 4.2.0

Parameters

id(no description provided)
setName(name: str)
Krita 4.2.0

Parameters

name(no description provided)
setSpotColor(spotColor: bool)
Krita 4.2.0

Parameters

spotColor(no description provided)
spotColor()bool
Krita 4.2.0

Return

(no description provided)