An open API service indexing awesome lists of open source software.

https://github.com/fogleman/pixsort

Applying the traveling salesman problem to pixel art.
https://github.com/fogleman/pixsort

Last synced: 11 months ago
JSON representation

Applying the traveling salesman problem to pixel art.

Awesome Lists containing this project

README

          

## pixsort

Applying the traveling salesman problem to pixel art.

Goal: Find the shortest path to visit all black pixels in an image.

Algorithm: Simulated annealing.

![Frog](http://i.imgur.com/2xiwTVE.gif)

![Peach](http://i.imgur.com/sCBhROn.gif)

## Usage

go get github.com/fogleman/pixsort
pixsort image.png

This will generate a file named `image.png.gif` with the result.

You can also pass in a `quality` parameter to make it try harder.

pixsort image.png 28

The algorithm will run `2 ^ quality` iterations.