Skip to content

turns an image into a gif of conway's game of life

Notifications You must be signed in to change notification settings

dylanthomas64/pixelator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pixelator

turns an image into a gif of conway's game of life

Build

$ cargo build --release

Usage

$ ./target/release/pixelator --help

Usage: pixelator.exe [OPTIONS] --path

Options:

-p, --path path to image

-o, --output-directory <OUTPUT_DIRECTORY> Output directory. ./output/ if none given

-g, --generations Number of steps in the game of life [default: 100]

-d, --decay How much alpha values reduce each step [default: 32]

-b, --background "white"/"w", "black"/"b", "#RRGGBB" [default: b]

-m, --mode Select "dark" or "light" mode for colour mapping options. Default = "random"

-s, --speed Set true for faster lossy gif rendering

-w, --width Output pixel width dimension using pixelation effect. Default is original image size. Smaller picture sizes result in exponentially faster renders

-h, --help Print help information

-V, --version Print version information

Examples

./target/release/pixelator -p "./images/jupiter.png" -o "./example_gifs/" -w 100

Alt Text

./target/release/pixelator -p "./images/shyguy.png" -o "./example_gifs/"

Alt Text

beetrootx560_random_200_32.gif

Alt Text

beetrootxOG_random_100_32.gif

Alt Text

About

turns an image into a gif of conway's game of life

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages