Skip to content

Latest commit

 

History

History
39 lines (28 loc) · 1.19 KB

README.md

File metadata and controls

39 lines (28 loc) · 1.19 KB

Rewrite

L-system implemented in Go with Ebitengine.

Demo

Fractal Plant / Barnsley Fern

BarnsleyFern.mov

Fractal / Binary Tree

BinaryTree.mov

Dragon Curve

DragonCurve.mov

Koch Curve

KochCurve.mov

Sierpinski Triangle

SierpinskiTriangle.mov

Code

  • system/ L-system interface and rewriting logic (see below), and a few examples.
  • render/ Renderer inferface with turtle graphics.
  • game/ Game engine logic.
  • main.go Entry point. Select examples here.
type System interface {
	Axioms() []rune
	Rule(r rune) []rune
}

type PathRenderer interface {
	Render(runes []rune) vector.Path
	AsyncRender(runes []rune, cancel <-chan struct{}) <-chan vector.Path
}