Colourettu 1.0.0 for Python released

Version 1.0.0 of Colourettu has been released.

Colourettu is a Python library I’ve written for dealing with colours, and specifically to determine the contrast between two colours.

A quick example:

import colourettu
c1 = colourettu.colour()                # defaults to #FFF
c2 = colourettu.colour("#eee")          # equivalent to #EEEEEE
c3 = colourettu.colour("#456bda")
c4 = colourettu.colour([3, 56, 129])    # as an RGB tuple or list
c5 = colourettu.colour((63, 199, 233))
>>> colourettu.contrast("#FFF", "#FFF") # white on white
>>> colourettu.contrast(c1, "#000")     # black on white
>>> colourettu.contrast(c4, c5)

The easiest to install (or upgrade) Colourettu (assuming you already have Python installed) is to use pip:

pip install colourettu --upgrade

The biggest change with this release is that Colourettu documentation is now online. A full changelog is online as part of that. The code for Colourettu is hosted on Github.

Other posts

Other posts under Colourettu


There are no comments yet. Will you add the first one?

Add a Comment

You can use the Markdown syntax to format your comment.

or alternately, send me your thoughts at minchinweb [at]

Comment Atom Feed (for this post)