ColorSchemeConstantIllustrate¶
Please refer to samson.DataModel.DataGraph.ColorScheme
.
See also
SAMSON API: SBDColorSchemeConstantIllustrate
- class samson.DataModel.Color.ColorSchemeConstantIllustrate(*args, **kwargs)¶
Bases:
samson.DataModel.DataGraph.ColorScheme
This class describes an illustrative constant color scheme. The colorization is done in the way that it resembles the “Molecule of the Month” style by David S. Goodsell.
Overloaded function.
__init__(self: samson.DataModel.Color.ColorSchemeConstantIllustrate) -> None
Constructs a color (1.0, 1.0, 1.0, 1.0)
__init__(self: samson.DataModel.Color.ColorSchemeConstantIllustrate, red: float, green: float, blue: float, alpha: float = 1.0) -> None
Constructs a color (red, green, blue, alpha). Arguments should be in the range [0.0, 1.0].
- Args:
red (float): red component of RGB-color
green (float): green component of RGB-color
blue (float): blue component of RGB-color
alpha (float): alpha component (transparency)
__init__(self: samson.DataModel.Color.ColorSchemeConstantIllustrate, red: int, green: int, blue: int, alpha: int = 255) -> None
Constructs a color (red, green, blue, alpha). Arguments should be in the range [0, 255].
- Args:
red (int): red component of RGB-color
green (int): green component of RGB-color
blue (int): blue component of RGB-color
alpha (int): alpha component (transparency)
__init__(self: samson.DataModel.Color.ColorSchemeConstantIllustrate, c: samson.DataModel.Type.Color) -> None
Constructs a color based on another color c.
- clone(self: samson.DataModel.DataGraph.ColorScheme) samson.DataModel.DataGraph.ColorScheme ¶
Returns a copy of the color scheme
- getColor(self: samson.DataModel.DataGraph.ColorScheme, node: samson.DataModel.DataGraph.Node = None) List[float] ¶
Returns a color given a node
- property isSerializable¶
Returns true when the class is serializable