ColorPaletteFlexibleDivergingHCL¶
This class is a base class for flexible diverging HCL color palettes.
See also
SAMSON API: SBDColorPaletteFlexibleDivergingHCL
- class samson.DataModel.Color.ColorPaletteFlexibleDivergingHCL(*args, **kwargs)¶
Bases:
samson.DataModel.Color.ColorPalette
This class is a class for the flexible diverging HCL (Hue-Chroma-Luminance) color palette.
Overloaded function.
__init__(self: samson.DataModel.Color.ColorPaletteFlexibleDivergingHCL) -> None
Default constructor
__init__(self: samson.DataModel.Color.ColorPaletteFlexibleDivergingHCL, hue1: int, hue2: int, hue3: int, chroma1: int, chroma2: int, chroma3: int, luminance1: int, luminance2: int, luminance3: int, chromaPower1: float, luminancePower1: float, chromaPower2: float, luminancePower2: float, maximumChroma1: int, maximumChroma2: int, neutralPoint: float, name: str) -> None
Constructs a flexible diverging HCL color palette with the given parameters
__init__(self: samson.DataModel.Color.ColorPaletteFlexibleDivergingHCL, otherColorPalette: samson.DataModel.Color.ColorPaletteFlexibleDivergingHCL) -> None
Constructs a flexible diverging color palette based on the given flexible diverging HCL color palette
- class ColorPaletteType(self: samson.DataModel.Color.ColorPalette.ColorPaletteType, value: int) None ¶
Bases:
pybind11_builtins.pybind11_object
Members:
Custom : An undefined type - a custom color palette which does not fall into any of other categories
Qualitative : A qualitative color palette type - for coding categorical information, i.e., where no particular ordering of categories is available and every color should receive the same perceptual weight.
Sequential : A sequential color palette type - for coding ordered/numeric information, i.e., going from high to low (or vice versa).
Diverging : A diverging color palette type - for coding ordered/numeric information around a central neutral value, i.e., where colors diverge from neutral to two extremes.
FlexibleDiverging : A flexible diverging color palette type - for coding ordered/numeric information around a central neutral value, i.e., where colors diverge from neutral to two extremes.
- Custom = <ColorPaletteType.Custom: 0>¶
- Diverging = <ColorPaletteType.Diverging: 3>¶
- FlexibleDiverging = <ColorPaletteType.FlexibleDiverging: 4>¶
- Qualitative = <ColorPaletteType.Qualitative: 1>¶
- Sequential = <ColorPaletteType.Sequential: 2>¶
- property name¶
- property value¶
- 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) samson.DataModel.Type.Color ¶
Returns SBColor 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]
- getColorVector(self: samson.DataModel.Color.ColorPalette, arg0: float) List[float] ¶
Returns RGB color in a float vector based on the palette and an intensity value value which should be in the range [0.0, 1.0]
- static getValueAlongLinearTrajectory(y1: float, y2: float, power: float, x: float) float ¶
Returns a value along the linear trajectory
- static getValueAlongTriangularTrajectory(y1: float, ymax: float, y2: float, power: float, x: float) float ¶
Returns a value along the triangular trajectory
- setChroma(self: samson.DataModel.Color.ColorPaletteFlexibleDivergingHCL, chroma1: int, chroma2: int, chroma3: int, maximumChroma1: int, maximumChroma2: int, chromaPower1: float = 1.0, chromaPower2: float = 1.0) None ¶
- setHue(self: samson.DataModel.Color.ColorPaletteFlexibleDivergingHCL, hue1: int, hue2: int, hue3: int) None ¶
- setLuminance(self: samson.DataModel.Color.ColorPaletteFlexibleDivergingHCL, luminance1: int, luminance2: int, luminance3: int, luminancePower1: float = 1.0, luminancePower2: float = 1.0) None ¶
- Custom = <ColorPaletteType.Custom: 0>¶
- Diverging = <ColorPaletteType.Diverging: 3>¶
- FlexibleDiverging = <ColorPaletteType.FlexibleDiverging: 4>¶
- Qualitative = <ColorPaletteType.Qualitative: 1>¶
- Sequential = <ColorPaletteType.Sequential: 2>¶
- property chroma1¶
- property chroma2¶
- property chroma3¶
- property chromaPower1¶
- property chromaPower2¶
- property hue1¶
- property hue2¶
- property hue3¶
- property isSerializable¶
Returns true when the class is serializable
- property luminance1¶
- property luminance2¶
- property luminance3¶
- property luminancePower1¶
- property luminancePower2¶
- property maximumChroma1¶
- property maximumChroma2¶
- property name¶
The color palette’s name
- property neutralPoint¶
- property reverseFlag¶
The reverse flag - whether the color palette is mirrored or not
- property type¶
The color palette’s type