Expand description
Color schemes for protein structure rendering.
Enums§
- Color
Scheme - Represents different color schemes for rendering atoms.
- Vertex
MapKind - Discriminates whether a vertex_map contains atom indices or residue iteration indices.
Functions§
- apply_
mvs_ colors - Paint vertex colors on
meshby applying MVS color nodes in order. - apply_
mvs_ colors_ with_ theme - Apply theme + Color-node overrides in one call.
- color_
t_ to_ bevy - Convert a MolViewSpec
ColorTto a BevyColor. - css_
named_ color - CSS named color RGB values (W3C spec, https://www.w3.org/TR/css-color-3/).
- element_
color - CPK element colors.
- initial_
colors_ from_ theme - Compute per-vertex initial colors from a
ColorThemeT. - parse_
hex_ color - Parse
#rrggbb(case-insensitive, leading#optional). ReturnsColor::WHITEwith awarn!on any parse error.