Skip to content

allrgb/image-permute

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

image-permute

Generating images with a full spectrum of colors, allRGB-style.

About

There are several disucssions online (1, 2, 3) about generating images where each color in the RGB color space is used once. This is my implementation of some ideas from each of those sites. It's not particularly novel, though I do support images of sizes other than 2^24 while maintaining the spirit of allRGB by evenly sampling the RGB colorspace.

Warning

Most of this code was written while I was on vacation, sitting on a deck chair, looking at the ocean, possibly having a drink.

Examples

Starting from this input image:

Osaka Castle, by Agustin Rafael Reyes

Ignoring hue:

bin/permute examples/castle.png examples/ascending.png -a

examples/ascending.png

Swapping pixels for a closer match:

bin/permute examples/castle.png examples/castle-s200.png -s 200

examples/castle-s200.png

Dithering:

bin/permute examples/castle.png examples/castle-d300.png -d 300

examples/castle-d300.png

No input image, just colors:

bin/abstract 750 1200 examples/sdfs.png

examples/sdfs.png

A slightly different feel:

bin/abstract 750 1200 examples/bfs.png -bfs

examples/bfs.png

Building

Requires pnglib and a newish compiler. Clone the repo, then:

cd image-permute
mkdir build
cd build
cmake ..
make

Releases

No releases published

Sponsor this project

Packages

No packages published

Languages

  • C++ 96.1%
  • CMake 3.9%