SBColorSchemePerFormalCharge#
This class describes a color scheme based on the formal charge of atoms.
Please refer to samson.SBNodeColorScheme
.
See also
SAMSON SDK: SBDColorSchemePerFormalCharge
- class samson.SBColorSchemePerFormalCharge(*args, **kwargs)#
Bases:
SBColorSchemePerAttribute_int
This class describes a color scheme based on the formal charge of atoms.
Overloaded function.
__init__(self: samson.SBColorSchemePerFormalCharge) -> None
__init__(self: samson.SBColorSchemePerFormalCharge, nodeIndexer: samson.SBNodeIndexer, colorPalette: samson.SBPalette = None) -> None
Constructs color scheme for nodeIndexer with the given colorPalette.
The colorization is based on the range of formal charges of atoms identified in the nodeIndexer.
- Parameters:
nodeIndexer (samson.SBNodeIndexer) – A indexer of nodes to which the color scheme is applied
colorPalette (samson.SBPalette, default=None) –
- A color palette.
If None, then the default color palette associated with this color scheme will be used.