Skip to content

A few different methods of generating "allRGB" images, where each pixel is a different color and all possible colors are shown in the image.

License

Notifications You must be signed in to change notification settings

swarn/image-permute

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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.

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

About

A few different methods of generating "allRGB" images, where each pixel is a different color and all possible colors are shown in the image.

Resources

License

Stars

Watchers

Forks