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
Member documentation
+Krita 4.2.0↻Krita master
Parameters
rhs | (no description provided) |
parent | (no description provided) |
Return
(no description provided) |
+Krita 4.2.0
Parameters
rhs | (no description provided) |
Return
(no description provided) |