@@ -104,12 +104,30 @@ to achieve::
f.write(identicon_png)
f.close()
# ASCII identicon can be printed-out to console directly.
print identicon_ascii
Working with transparency
-------------------------
.. note::
New in version ``0.3``.
If you ever find yourself in need of having a transparent background or
foreground, you can easily do this using the syntax
``rgba(224,224,224,0)``. All this does is effectively adding alpha channel to
selected colour.
The alpha channel value ranges from ``0`` to ``255``, letting you specify how
much transparency/opaqueness you want. For example, to have it at roughly 50%
(more like at ``50.2%`` since you can't use fractions), you would simply specify
value as ``rgba(224,224,224,128)``.
Full example
------------
Finally, here is a full example that will create a number of identicons and
output them in PNG format to local directory::