This program makes computer generated Zentangles by first evolving images in Picbreeder with Compositional Pattern Producing Networks and then assembling chosen images into patterns using Wave Function Collapse.
- Launch-Zentangle-Interactive.bat : Evolve interactively using Picbreeder
- Launch-Zentangle-HB.bat : Automatically generate using the half-black fitness scheme
- Launch-Zentangle-HB3Color.bat : Automatically generate using the half-black-3-color fitness scheme
- Launch-Zentangle-RandomBW.bat : Automatically generate using the random fitness scheme in black-white only
- Launch-Zentangle-RandomColor.bat : Automatically generate using the random fitness scheme in color
- Double click on the Launch-Zentangle-Interactive.bat to create Zentangles interactively or choose any of the other 4 batch files with the Launch prefix to automatically generate Zentangles using the fitness schemes random, half-black, half-black-3-color
- Run
bash Launch-Zentangle-Interactive.bat
from the terminal to create Zentangles interactively or choose any of the other 4 batch files with the Launch prefix to automatically generate Zentangles using the fitness schemes random, half-black, half-black-3-color
- Run PicbreederTask.java from the terminal or an IDE
- Evolve images until you find some that you think would make interesting patterns
- Toggle the activation functions and color/black-white setting as you please. Keep the "stark" option on
- Increase or decrease the mutation rate for more change between generations
- Select at least two images and press the Z (Zentangle) button! It may take take a few moments
- Some of the images will be patterned using WFC and up to 2 will be used as template images
- The details of how a Zentangle is formed depend on how many images contribute to the Zentangle (see Zentangle Creation section)
- Your image will appear in a new window
Images evolved from Picbreeder are randomly assigned roles as tiles or templates according to the table below.
Total Number of Images | Used for Templates | Used for tiles | Additional Information |
---|---|---|---|
2 | 1 | 2 | One image used for both template and tiles. |
3 | 1 | 2 | Template and tile images are distinct. |
4 | 2 | 3 | One image used for both template and tiles. Uses intersection of two templates |
5 | 2 | 3 | Template and tile images are distinct. Uses the intersection of two templates. |
6+ | 1 | 5+ | Multiple images are used in each of two tile patterns. |
When using the intersection of two templates, areas that are black in both templates are filled with one pattern, areas that are non-black in both templates are filled with another pattern, and areas that are different in both are filled with the remaining pattern.
Tile images are used as input to the Wave Function Collapse algorithm to make pattern images. Below is an example of assembling a Zentangle from 3 tile images: 1 template and 2 patterns.
Tile 1 | Tile 2 | Template |
Pattern 1 | Pattern 2 | Final Zentangle |
Tile 1 and Tile 2 are made into distinct pattern images. The patterns are then inserted into the template image. Pattern 1 fills the black area of the template while Pattern 2 fills the non-black.
Below are examples of human generated zentangle images.
Number of Images | Black and White | Color |
---|---|---|
2 | ||
3 | ||
4 | ||
5 | ||
6 |
Automated evolution uses 3 different fitness schemes to evolve Picbreeder images towards a certain trajectory within 50 generations.
- Random: selects random images at each generation
- Half-Black: selects images with ratio of black to white pixels closest to 0.5
- Half-Black-3-Color: selects images using a combination of 4 fitness schemes
- Half-black: see above
- Red: maximize red channel and minimize others
- Green: maximize green channel and minimize others
- Blue: maximize blue channel and minimize others
Below is a table of automatically evolved zentangle images.
Number of Images | Random Black-White | Random Color | Half-Black | Half-Black-3-Color |
---|---|---|---|---|
2 | ||||
3 | ||||
4 | ||||
5 | ||||
6 |
For this project, we have edited InteractiveEvolutionTask, which is implemented by a few other "tasks", such as breedesizer and animationbreeder. As a result, these tasks will also have a Zentangle button, but it will not function in those tasks.
- Sarah Friday, Anna Krolikowski, Alice Quintanilla, and Dr. Jacob Schrum
If you need any help, then please contact Dr. Jacob Schrum at schrum2@southwestern.edu!
Also, you can evolve neural networks for lots of other interesting applications by using the original MM-NEAT project, which contains the interactive evolution code from this project, along with code to evolve agent behavior for various tasks (Ms. Pac-Man, Tetris, and Mario to name a few)
If you use any of this code for any project or publication, please cite the following paper:
@inproceedings{krolikowski:evomusart2020,
title={Quantum Zentanglement: Combining Picbreeder and Wave Function Collapse to Create Zentangles®},
author={Krolikowski, Anna and Friday, Sarah and Quintanilla, Alice and Schrum, Jacob},
year={2020},
editor={Romero, Juan and Ek{\'a}rt, Anik{\'o} and Martins, Tiago and Correia, Jo{\~a}o},
booktitle={Artificial Intelligence in Music, Sound, Art and Design},
series={EvoMUSART 2020. Lecture Notes in Computer Science},
volume={12103},
pages={49--65},
numpages={16},
url = {https://people.southwestern.edu/~schrum2/re/papers/krolikowski.evomusart2020.pdf},
doi = {10.1007/978-3-030-43859-3_4},
publisher={Springer International Publishing},
address={Cham, Switzerland},
location={Seville, Spain}
}