/quad

Generate interesting images with quadtrees.

Primary LanguageGo

quad

Generates interesting pictures by using a bastardized implementation of a quadtree to group colors into squares based on how far away their average color is from their region.

usage

  1. Install Go https://golang.org/dl/
  2. Install quad go get github.com/masonelmore/quad
  3. Run quad # $GOROOT\bin\quad <filename>.png tolerance

notes and limitations

  • PNG is currently the only supported filetype.
  • Tolerance is a float between 0 and 1. Lower values produce more detailed images.

examples

original quadified tolerance
obama original obama quad 0.045
park original park quad 0.06
sunset original sunset quad 0.06