Skip to content

simonasker/arustid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

84 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

arustid

A simple tool for drawing fractals based on L-Systems using Turtle graphics. Mostly built as an excercise in Rust and SDL2.

It operates in two modes. One renders the pattern to a window and the other renders to an image file.

Examples

Sierpinski triangle with five iterations.

-a F-G-G -v 120 -r F:F-G+F+G-F -r G:GG -n 5 -o sierpinski.png

Sierpinski triangle

Gosper curve with three iterations.

$ arustid -a F -v 60 -r F:F-G--G+F++FF+G- -r G:+F-GG--G-F++F+G -n 3 -o gosper.png

Gosper curve

Dragon curve with ten iterations.

$ arustid -a FX -v 90 -r X:X+YF+ -r Y:-FX-Y -n 10 -o dragon.png

Dragon curve

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages