ColorPaletteSequentialHCL¶
This class is a base class for sequential HCL color palettes.
See also
SAMSON API: sbdcolorpalettesequentialhcl
-
class
samson.DataModel.Color.ColorPaletteSequentialHCL(*args, **kwargs)¶ Bases:
samson.DataModel.Color.ColorPaletteSequentialThis class is a base class for the sequential HCL (Hue-Chroma-Luminance) color palette.
Overloaded function.
- __init__(self: samson.DataModel.Color.ColorPaletteSequentialHCL) -> None
Default constructor
- __init__(self: samson.DataModel.Color.ColorPaletteSequentialHCL, hue1: int, hue2: int, chroma1: int, maximumChroma: int, chroma2: int, luminance1: int, luminance2: int, chromaPower: float, luminancePower: float, name: str) -> None
Constructs a sequential HCL color palette with the given parameters
- __init__(self: samson.DataModel.Color.ColorPaletteSequentialHCL, otherColorPalette: samson.DataModel.Color.ColorPaletteSequentialHCL) -> None
Constructs a sequential HCL color palette based on the given sequential HCL 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]
-
setChroma(self: samson.DataModel.Color.ColorPaletteSequential, chroma1: int, maximumChroma: int, chroma2: int, chromaPower: float = 1.0) → None¶
-
setHue(self: samson.DataModel.Color.ColorPaletteSequential, hue1: int, hue2: int) → None¶
-
setLuminance(self: samson.DataModel.Color.ColorPaletteSequential, luminance1: int, luminance2: int, luminancePower: float = 1.0) → None¶
-
Custom= ColorPaletteType.Custom¶
-
Diverging= ColorPaletteType.Diverging¶
-
Qualitative= ColorPaletteType.Qualitative¶
-
Sequential= ColorPaletteType.Sequential¶
-
chroma1¶
-
chroma2¶
-
chromaPower¶
-
hue1¶
-
hue2¶
-
isSerializable¶ Returns true when the class is serializable
-
luminance1¶
-
luminance2¶
-
luminancePower¶
-
maximumChroma¶
-
name¶ The color palette’s name
-
type¶ The color palette’s type