Skip to content

Instantly share code, notes, and snippets.

@kade-robertson
Created July 14, 2015 13:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kade-robertson/71352f591029788c0031 to your computer and use it in GitHub Desktop.
Save kade-robertson/71352f591029788c0031 to your computer and use it in GitHub Desktop.
lsystem DragonCurvePPCG {
    set symbols axiom = F X;
    set iterations = 12;
    interpret F as DrawForward(10);
    interpret - as TurnLeft(90);
    interpret + as TurnLeft(-90);
    rewrite X to X + Y F + ;
    rewrite Y to - F X - Y ;
}
process all with SvgRenderer;

Copy the above into this site to see a preview.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment