Skip to main content

Colour Sort

Generating Images using all 2563 RGB colours, inspired by https://allrgb.com/

Technique

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.

Installing

Go get poetry.

$ poetry install

Running

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:
  infile
  outfile

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:
  infile

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

Metadata

Release files for colour-sort 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for colour-sort 0.1.3
File Size Uploaded
colour_sort-0.1.3.tar.gz 35.7 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for colour-sort 0.1.3
File Interpreter ABI Platform
colour_sort-0.1.3-py3-none-any.whl Python 3 none any Details

Total release size: 71.4 MB

Release files / colour_sort-0.1.3.tar.gz

Download URL colour_sort-0.1.3.tar.gz
Size 35.7 MB
Tags Source
SHA-256 checksum
How to use checksums
334a4f8f96a33c2f981539da2c320a52d019fa8a6e086da010749ada34887fd9
BLAKE2b-256 checksum
How to use checksums
e3d4f98290a97d6d3d8b4d318118c0305aa0d22f096f666bd53029bdcc6eac38
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.0.5 CPython/3.8.2 Linux/5.6.11-arch1-1

Release files / colour_sort-0.1.3-py3-none-any.whl

Download URL colour_sort-0.1.3-py3-none-any.whl
Size 35.7 MB
Tags Python 3
SHA-256 checksum
How to use checksums
f31ab1e0712b75912e93626e2876fab4c0fe4328a4ace61223fd0a3aae5d74f4
BLAKE2b-256 checksum
How to use checksums
82ea9d46434ec11a369204feec3e37e7ea3c5ab9aea707d5c3611e1591d6b698
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.0.5 CPython/3.8.2 Linux/5.6.11-arch1-1

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 release files

0.1.2

2 release files

0.1.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page