Skip to main content

Module colors

Module colors 

Source
Expand description

Color schemes for protein structure rendering.

Enums§

ColorScheme
Represents different color schemes for rendering atoms.
VertexMapKind
Discriminates whether a vertex_map contains atom indices or residue iteration indices.

Functions§

apply_mvs_colors
Paint vertex colors on mesh by 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 ColorT to a Bevy Color.
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). Returns Color::WHITE with a warn! on any parse error.