Style Module
This module contains classes for styling molecular depictions.
- class Color(r: int, g: int, b: int)[source]
A color in RGB format.
Initialize the color.
- Parameters:
- Raises:
TypeError – If r, g, or b is not an integer.
- class PubChemAtomRadius[source]
Atomic radii (van der Waals) in picometer from PubChem.
Source: https://pubchem.ncbi.nlm.nih.gov/periodic-table/#property=AtomicRadius
- class Cartoon(fill_color: ~cinemol.style.Color, outline_color: ~cinemol.style.Color = <factory>, outline_width: float = 0.05, opacity: float = 1.0)[source]
Cartoon fill style.
- class Glossy(fill_color: Color, opacity: float = 1.0)[source]
Glossy fill style.
- Parameters:
fill_color – The color of the fill.
outline_color – The color of the stroke.
- class Wire(stroke_color: Color, stroke_width: float, opacity: float)[source]
Wire fill style.
Initialize the wire fill style.
- class Solid(fill_color: Color, stroke_color: Color, stroke_width: float, opacity: float)[source]
Solid fill style.
Initialize the solid fill style.
- class RadialGradient(fill_color: Color, center: Point2D, radius: float, opacity: float)[source]
Radial gradient fill style.
Initialize the radial gradient fill style.
- class LinearGradient(fill_color: Color, start: Point2D, end: Point2D, opacity: float)[source]
Linear gradient fill style.
Initialize the linear gradient fill style.