Changeset - ec559e7caf30
[Not reviewed]
0 2 0
Branko Majic (branko) - 7 years ago 2016-12-03 16:30:58
branko@majic.rs
DJPYD-8: Updated installation requirements to use Pydenticon 0.3. Updted documentation to mention ability to specify transparency for background and foreground colours.
2 files changed with 16 insertions and 1 deletions:
0 comments (0 inline, 0 general)
docs/configuration.rst
Show inline comments
 
@@ -73,6 +73,13 @@ generating the identicons. Each element of list/tuple should be a string
 
conformant to colour specification from the `Pillow
 
<http://pillow.readthedocs.org/en/latest/reference/ImageColor.html>`_ library.
 

	
 
In addition to regular RGB, you can also use the RGBA (RGB with alpha channel)
 
scheme to introduce partial or complete transparency when specyfing
 
colour. Alpha channel value ranges between 0 (full transparency) to 255 (no
 
transparency). For example ``rgba(224,224,224,0)`` will result in fully
 
transparent background, while ``rgba(224,224,244,128)`` will result in
 
approximatelly 50% transparency.
 

	
 
**Default value:** ``("rgb(45,79,255)", "rgb(254,180,44)", "rgb(226,121,234)",
 
"rgb(30,179,253)", "rgb(232,77,65)", "rgb(49,203,115)", "rgb(141,69,170)")``
 

	
 
@@ -84,6 +91,14 @@ identicons. This should be a string conformant to colour specification from the
 
`Pillow <http://pillow.readthedocs.org/en/latest/reference/ImageColor.html>`_
 
library. The value should be a string.
 

	
 
In addition to regular RGB, you can also use the RGBA (RGB with alpha channel)
 
scheme to introduce partial or complete transparency when specyfing
 
colour. Alpha channel value ranges between 0 (full transparency) to 255 (no
 
transparency). For example ``rgba(224,224,224,0)`` will result in fully
 
transparent foreground, while ``rgba(224,224,244,128)`` will result in
 
approximatelly 50% transparency. Different foreground colours can have different
 
values for alpha channel.
 

	
 
**Default value:** ``"rgb(224,224,224)"``
 

	
 
``PYDENTICON_DIGEST``
setup.py
Show inline comments
 
@@ -2,7 +2,7 @@ import os
 
from setuptools import setup, find_packages
 

	
 
README = open(os.path.join(os.path.dirname(__file__), 'README.rst')).read()
 
INSTALL_REQUIREMENTS = ["pydenticon", "django>=1.8.0"]
 
INSTALL_REQUIREMENTS = ["pydenticon>=0.3", "django>=1.8.0"]
 
TEST_REQUIREMENTS = []
 

	
 
# allow setup.py to be run from any path
0 comments (0 inline, 0 general)