rdkit.sping.colors module

class rdkit.sping.colors.Color(red=0, green=0, blue=0)

Bases: object

This class is used to represent color. Components red, green, blue are in the range 0 (dark) to 1 (full intensity).

toHexRGB()

Convert the color back to an integer suitable for the

toHexStr()
rdkit.sping.colors.HexColor(val)

This class converts a hex string, or an actual integer number, into the corresponding color. E.g., in “AABBCC” or 0xAABBCC, AA is the red, BB is the green, and CC is the blue (00-FF).