new RenderColorUtils()
Help methods to get colors used for atom.
- Source:
Methods
-
(static) getActiveAtomColorSet(rendererType) → {Array}
-
Return active color set used for atoms.
Parameters:
Name Type Description rendererType
Int Indicate the color will be used in 2D or 3D renderer. - Source:
Returns:
- Type
- Array
-
(static) getColor(atomicNumber, rendererType) → {String}
-
Get color for an atom.
Parameters:
Name Type Description atomicNumber
Object 0 is for default color for non-atom node. rendererType
Int Indicate the color will be used in 2D or 3D renderer. - Source:
Returns:
'#RRGGBB' format color.- Type
- String
-
(static) setActiveAtomColorSet(newSetName, rendererType)
-
Set active color set for atoms.
Parameters:
Name Type Description newSetName
String rendererType
Int Indicate the color will be used in 2D or 3D renderer. - Source: