blob: bec38b90dff64f4730c4bf881d7b3f85fbd2eb0d (
plain) (
tree)
|
|
{% match color %}
{% when Color::Rgb with {r, g: g, b: blue} %}
Colorful: #{{ "{:02X}"|format(r) }}{{ "{:02X}"|format(g) }}{{ "{:02X}"|format(blue) }}
{% when Color::GrayScale with (val) %}
Gray: #{{ "{:02X}"|format(val) }}{{ "{:02X}"|format(val) }}{{ "{:02X}"|format(val) }}
{% else %}
CMYK not supported
{% endmatch %}
|