Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/r2dev2/mysteryart

Mystery generative art I conjured.
https://github.com/r2dev2/mysteryart

Last synced: 22 days ago
JSON representation

Mystery generative art I conjured.

Awesome Lists containing this project

README

        

# Mystery Art

Mystery generative art I conjured up for no particular reason.

## Samples

The following samples were generated from a starting geometric shape.

### Circle

https://r2dev2.github.io/MysteryArt?start=circle

![S(50) from starting with a circle](./img/start_from_circle.png)

### Venn Diagram

https://r2dev2.github.io/MysteryArt?start=venn
![S(50) from starting with a venn diagram](./img/venn.png)

## Algorithm

The algorithm is fairly simple:

1. let S(t) be the state of the picture in the form of the opacity of each pixel
2. let S(0) be any geometric shape
3. let S(t + 1) = (opacity increase factor = 1.5) * (the average opacity of neighbors in a square around the pixel) for each pixel in S(t) and if the new opacity is > 1, reset it to 0