ColorSchemeConstantΒΆ
Please refer to samson.DataModel.DataGraph.ColorScheme
.
See also
SAMSON API: SBDColorSchemeConstant
-
class
samson.DataModel.Color.
ColorSchemeConstant
(*args, **kwargs)ΒΆ Bases:
samson.DataModel.DataGraph.ColorScheme
This class describes a constant color scheme.
Overloaded function.
- __init__(self: samson.DataModel.Color.ColorSchemeConstant) -> None
Constructs a color (1.0, 1.0, 1.0, 1.0)
- __init__(self: samson.DataModel.Color.ColorSchemeConstant, 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.ColorSchemeConstant, 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.ColorSchemeConstant, c: samson.DataModel.Type.Color) -> None
Constructs a color based on another color c.
-
getColor
(self: samson.DataModel.DataGraph.ColorScheme, node: samson.DataModel.DataGraph.Node = None) → List[float]ΒΆ Returns a color given a node
-
isSerializable
ΒΆ Returns true when the class is serializable