Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/j-jzk/dla-anim

Diffusion-limited aggregation animation generator
https://github.com/j-jzk/dla-anim

Last synced: 25 days ago
JSON representation

Diffusion-limited aggregation animation generator

Awesome Lists containing this project

README

        

# Diffusion-Limited Aggregation animation generator
This is a fun little program for generating animations of [diffusion-limited aggregation](https://en.wikipedia.org/wiki/Diffusion-limited_aggregation). The performance may not be the best, but it's manageable.

## Examples
_If your browser doesn't support animated PNGs, you can download these examples as videos from the `examples` folder._

![Basic](examples/center.png)

![Growing from corners](examples/corners.png)

![Custom shape](examples/shape.png)

## Usage
```
dla-anim [options]
-g, --grid-size - default 128
--target-fill - the target area ratio to fill, default 0.2

--start-json - set the coordinates of the starting point(s),
for example [[1,1],[64,64]]
--start-png - set the starting points from the specified image
```

## Building
```sh
haxelib newrepo
haxelib --always --skip-dependencies install haxelib-lock.hxml
haxe build.hxml
```
The binary will be located at `build/Main`.