Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/r2dev2/mysteryart
- Owner: r2dev2
- License: wtfpl
- Created: 2022-02-25T06:55:45.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2022-02-25T17:39:03.000Z (almost 3 years ago)
- Last Synced: 2024-11-09T06:44:55.564Z (3 months ago)
- Language: JavaScript
- Size: 655 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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