Skip to content

Latest commit

 

History

History
30 lines (23 loc) · 1 KB

README.md

File metadata and controls

30 lines (23 loc) · 1 KB

Diffusion-Limited Aggregation animation generator

This is a fun little program for generating animations of 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

Growing from corners

Custom shape

Usage

dla-anim [options] <output.png>
  -g, --grid-size <gridSize> - default 128
  --target-fill <targetFill> - the target area ratio to fill, default 0.2

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

Building

haxelib newrepo
haxelib --always --skip-dependencies install haxelib-lock.hxml
haxe build.hxml

The binary will be located at build/Main.