|
Manipulate colors with Django !
ExampleThe template for the example above is quite self explanatory:
<h1><b style="background-color:#{{ color }};"></b>#{{ color }}</h1>
<h2>Lightness</h2>
<ul class="color-test">
{% for l in lightness_range %}
<li style="background-color:#{{ color|lightness:l }};"><b>{{ l }}%</b></li>
{% endfor %}
</ul>
<h2>Saturation</h2>
<ul class="color-test">
{% for s in saturation_range %}
<li style="background-color:#{{ color|saturation:s }};"><b>{{ s }}%</b></li>
{% endfor %}
</ul>
<h2>Hue</h2>
<ul class="color-test">
{% for h in hue_range %}
<li style="background-color:#{{ color|hue:h }};"><b>{{ h }}°</b></li>
{% endfor %}
</ul>
Current featuresCreditsThis project was created and is sponsored by:
|