Skip to content

gyscos/colors

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

colors

Lovely programatic images

This one was generated in 63 minutes: Programatic image

This was generated with cargo run --release 10

How it works

First, the image is seeded with n * 2 randomly colored pixels, where n is the input.

Then, a random pixel is chosen. The pixel which has already been placed whose color is closest to that pixel is located, and the new pixel is placed as close as possible to the pixel which was located. This process is repeated until the image is filled.

The pixels are not chosen purely randomly, but are instead a random ordering over a color cube with n^2 possibilities for each of R,G,B. These pixels exactly fit into the n^3 by n^3 square canvas, which is then output.

Command line options

Put the size parameter as the first argument. Currently 1-15 are suppoered.

If you want debugging information, give a second argument. Anything is fine.

The command line interface will likely be upgraded soon.

About

Lovely programatic images

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 100.0%