ColorPalette¶
This class is a base class for color palettes.
See also
SAMSON API: sbdcolorpalette
-
class
samson.DataModel.Color.ColorPalette(self: samson.DataModel.Color.ColorPalette) → None¶ Bases:
pybind11_builtins.pybind11_objectThis class is a base class for color palettes.
Default constructor
-
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]
-
Custom= ColorPaletteType.Custom¶
-
Diverging= ColorPaletteType.Diverging¶
-
Qualitative= ColorPaletteType.Qualitative¶
-
Sequential= ColorPaletteType.Sequential¶
-
isSerializable¶ Returns true when the class is serializable
-
name¶ The color palette’s name
-
type¶ The color palette’s type
-
class