Skip to main content

A tool to generate images using all rgb colours with no duplicates.

Project description

Colour Sort

Generating Images using all 2563 RGB colours, inspired by


To generate a re-coloured image, the source image's pixel data is sorted (using one of several different sorting modes) using numpy's argsort function, giving us a mapping from the original to the sorted version. This mapping is then used to "unsort" an array of all 2563 colours that in sorted order. The result of this operation is then written out as our result.


Go get poetry.

$ poetry install


Once the tool has been installed, it can be ran with the following command

$ colour generate --help
usage: colour generate [-h] [--sort {brightness,avg,rgb,rbg,brg,bgr,grb,gbr}]
                       infile outfile

positional arguments:

optional arguments:
  -h, --help            show this help message and exit
  --sort {brightness,avg,rgb,rbg,brg,bgr,grb,gbr}

$ colour verify --help
usage: colour verify [-h] infile

positional arguments:

optional arguments:
  -h, --help  show this help message and exit

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for colour-sort, version 0.1.3
Filename, size File type Python version Upload date Hashes
Filename, size colour_sort-0.1.3-py3-none-any.whl (35.7 MB) File type Wheel Python version py3 Upload date Hashes View
Filename, size colour_sort-0.1.3.tar.gz (35.7 MB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page