Skip to main contentModule color
Source - Color
- Color in a specific color model, matching Perl’s LaTeXML::Common::Color hierarchy.
- BLACK
- Perl: use constant Black => bless [‘rgb’, 0, 0, 0], ‘…::rgb’;
- WHITE
- Perl: use constant White => bless [‘rgb’, 1, 1, 1], ‘…::rgb’;
- color_from_model_spec
- Parse a color from model name + spec string.
Perl: Color($model, components)->toCore
- format_component
- Format a float component like Perl: integers without decimal point.
- from_model_components
- Create a Color from model name and component values