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

https://github.com/ponup/l-systems


https://github.com/ponup/l-systems

fractal l-system turtle-graphics

Last synced: about 2 months ago
JSON representation

Awesome Lists containing this project

README

        

# PHP L-systems

Basic Lindenmayer system generation and rendering classes.

Example l-systems taken from http://paulbourke.net/fractals/lsys/ and other websites.

## Requirements

- PHP +8.3
- Composer

## Usage

```shell
composer install
php main.php definitions/tree.yaml
open tree.png # Or open using any picture viewer
```

## Examples

![pentaplexity.png](pentaplexity.png)

![crystal.png](crystal.png)

![labyrinth.png](labyrinth.png)

![quadratic-gosper.png](quadratic-gosper.png)

![saupe.png](saupe.png)

![tree.png](tree.png)

![von-kock-snowflake.png](von-kock-snowflake.png)