ColorPaletteQualitative¶
This class is a base class for qualitative color palettes.
See also
SAMSON API: sbdcolorpalettequalitative
-
class
samson.DataModel.Color.ColorPaletteQualitative(*args, **kwargs)¶ Bases:
samson.DataModel.Color.ColorPaletteThis class is a base class for qualitative color palettes.
Overloaded function.
- __init__(self: samson.DataModel.Color.ColorPaletteQualitative) -> None
Default constructor
- __init__(self: samson.DataModel.Color.ColorPaletteQualitative, hue1: int, hue2: int, chroma: int, luminance: int, name: str) -> None
Constructs a qualitative color palette with the given parameters
- __init__(self: samson.DataModel.Color.ColorPaletteQualitative, otherColorPalette: samson.DataModel.Color.ColorPaletteQualitative) -> None
Constructs a qualitative color palette based on the given qualitative color palette
-
class
ColorPaletteType(self: samson.DataModel.Color.ColorPalette.ColorPaletteType, arg0: int) → None¶ Bases:
pybind11_builtins.pybind11_objectMembers:
Custom
Qualitative
Sequential
Diverging
-
Custom= ColorPaletteType.Custom¶
-
Diverging= ColorPaletteType.Diverging¶
-
Qualitative= ColorPaletteType.Qualitative¶
-
Sequential= ColorPaletteType.Sequential¶
-
name¶ (self – handle) -> str
-
-
clone(self: samson.DataModel.Color.ColorPalette) → samson.DataModel.Color.ColorPalette¶ Returns a copy of the color palette
-
getColor(self: samson.DataModel.Color.ColorPalette, arg0: float) → List[float]¶ Returns RGB color based on the palette and an intensity value value which should be in the range [0.0, 1.0]
-
getColorInPaletteColorSpace(self: samson.DataModel.Color.ColorPalette, arg0: float) → List[float]¶ Returns color coordinates in this palette’s color space for the given intensity value value which should be in the range [0.0, 1.0]
-
setHue(self: samson.DataModel.Color.ColorPaletteQualitative, hue1: int, hue2: int) → None¶
-
Custom= ColorPaletteType.Custom¶
-
Diverging= ColorPaletteType.Diverging¶
-
Qualitative= ColorPaletteType.Qualitative¶
-
Sequential= ColorPaletteType.Sequential¶
-
chroma¶
-
hue1¶
-
hue2¶
-
isSerializable¶ Returns true when the class is serializable
-
luminance¶
-
name¶ The color palette’s name
-
type¶ The color palette’s type