Skip to main content

Module color

Module color 

Source

Enums§

Color
Color in a specific color model, matching Perl’s LaTeXML::Common::Color hierarchy.

Constants§

BLACK
Perl: use constant Black => bless [‘rgb’, 0, 0, 0], ‘…::rgb’;
WHITE
Perl: use constant White => bless [‘rgb’, 1, 1, 1], ‘…::rgb’;

Functions§

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