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 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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file colour_sort-0.1.3.tar.gz
.
File metadata
- Download URL: colour_sort-0.1.3.tar.gz
- Upload date:
- Size: 35.7 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.5 CPython/3.8.2 Linux/5.6.11-arch1-1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 334a4f8f96a33c2f981539da2c320a52d019fa8a6e086da010749ada34887fd9 |
|
MD5 | b773272eef79c38301dbe95c3cae6d47 |
|
BLAKE2b-256 | e3d4f98290a97d6d3d8b4d318118c0305aa0d22f096f666bd53029bdcc6eac38 |
File details
Details for the file colour_sort-0.1.3-py3-none-any.whl
.
File metadata
- Download URL: colour_sort-0.1.3-py3-none-any.whl
- Upload date:
- Size: 35.7 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.5 CPython/3.8.2 Linux/5.6.11-arch1-1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f31ab1e0712b75912e93626e2876fab4c0fe4328a4ace61223fd0a3aae5d74f4 |
|
MD5 | 3569b1349e5a925765a255d96a8b58d0 |
|
BLAKE2b-256 | 82ea9d46434ec11a369204feec3e37e7ea3c5ab9aea707d5c3611e1591d6b698 |