# Image Synthesis
## Current Status
In progress.
There are quite a few unexplored concepts, especially related to the declarative language used to define procedural rules and constraints.
Related: [[2024-03-memos#2024-03-29]]
## Overview
This project implements the Baker-Bird two-dimensional pattern-matching algorithm alongside a probabilistic operation to synthesize images based on provided rules.
Inspired by MarkovJunior project: https://github.com/mxgmn/MarkovJunior
URL: https://github.com/oneearedrabbit/image-synthesis/tree/master/mj
## Examples
### Grow
Rules:
```
R. => RR
```
Output:
![[grow.gif]]
### Maze Backtracer
Rules:
```
R.. => GGR
RGG => YYR
```
Output:
![[maze.gif]]