SBColorSchemePerResidueType#

This class describes a color scheme based on the residue type (ALA, GLY, HIS, etc.).

Please refer to samson.SBNodeColorScheme.

See also

SAMSON SDK: SBDColorSchemePerResidueType

class samson.SBColorSchemePerResidueType(*args, **kwargs)#

Bases: SBColorSchemePerAttribute_ResidueType

This class describes a color scheme based on the residue type (ALA, GLY, HIS, etc.).

Overloaded function.

  1. __init__(self: samson.SBColorSchemePerResidueType) -> None

  2. __init__(self: samson.SBColorSchemePerResidueType, 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 standard residue types.

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.