is_eq : _
Compare stored CSS spellings; different spellings may render the same color.
Color :: # (opaque)
A validated CSS color. RGB channels and alpha use bytes in the range 0–255.
is_eq : _
Compare stored CSS spellings; different spellings may render the same color.
to_hash : _
Hash the stored CSS spelling consistently with Color.is_eq.
Construct an opaque RGB color.
Alpha 0 is transparent and 255 is opaque.
Parse exactly six hexadecimal digits preceded by #.
Both letter cases are accepted and preserved. Short forms and alpha
suffixes are rejected as InvalidHex(original_text).
Parse a supported CSS named color, independent of ASCII case.
The stored spelling is lowercase. Unknown names return
UnknownColor(original_text). Use Color.rgba when transparency
is needed.
Read the CSS value for use in a stylesheet or Plotly field.
to_json_value : Color -> InternalJson
Internal composition hook used by Plume's renderers.
Applications normally use Color.to_json for complete JSON text;
this returns the package's safe internal value without accepting raw JSON.
Serialize this validated value as a complete JSON document.