Colourettu

Colourettu 1.1.0 for Python released

Version 1.1.0 of Colourettu has been released.

Colourettu is a Python library I’ve written for dealing with colours and “palettes” (groups of 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))
c6 = colourettu.colour([0.242, 0.434, 0.165], normalized_rgb=True)

all_colours = [c1, c2, c3, c4, c5, c6]

p2 = colourettu.palette()
p2.from_list(all_colours)
p2.to_image('p2.png', max_width=360, vertical=False)

Colourettu p2

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

pip install colourettu --upgrade

The changes for this version include a project logo (above), and the addition of the palette class.

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



Comments

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] gmail.com

Comment Atom Feed (for this post)