# Harmonograph

Generates patterns like a real [harmonograph](https://en.wikipedia.org/wiki/Harmonograph).

This was just a fun project to work on. It generates a complex parametric equation from input JSON files, and animates the resulting function. It can also save the final image to a file. There are some pre-made JSON files with interesting results in [`Harmonograph/Presets`](https://github.com/allemangD/Harmonograph/tree/master/Harmonograph/presets).

#### [`sparse2.json`](https://github.com/allemangD/Harmonograph/blob/master/Harmonograph/presets/sparse2.json)
![sparse2.png](https://raw.githubusercontent.com/allemangD/Harmonograph/master/Harmonograph/presets/sparse2.png)

#### [`sparse.json`](https://github.com/allemangD/Harmonograph/blob/master/Harmonograph/presets/sparse.json)
![sparse.png](https://raw.githubusercontent.com/allemangD/Harmonograph/master/Harmonograph/presets/sparse.png)

It is also possible to set the lines to be transparent, which can have interesting results when the friction is set very low:

#### [`blackonwhite.json`](https://github.com/allemangD/Harmonograph/blob/master/Harmonograph/presets/blackonwhite.json)![blackonwhite.png](https://raw.githubusercontent.com/allemangD/Harmonograph/master/Harmonograph/presets/blackonwhite.png)
