mirror of
https://github.com/genodelabs/genode.git
synced 2025-02-03 01:30:41 +00:00
40c9226bb9
This patch adds a 'Color::print' method as counterpart to the 'ascii_to' function. If the color is opaque (alpha is 255), its output has the form "#rrggbb". If the color has a distinct alpha value, the output has the form "#rrggbbaa". The new version of the 'ascii_to' overload for 'Color' is able to deal with both forms.