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)
| File | Size | Uploaded | |
|---|---|---|---|
| colour_sort-0.1.3.tar.gz | 35.7 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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
|