Skip to content

Instantly share code, notes, and snippets.

@kade-robertson

kade-robertson/GosperCurveHexPPCG.md Secret

Last active Aug 29, 2015
Embed
What would you like to do?
lsystem GosperCurveHexPPCG {
    set symbols axiom = F;
    set iterations = 4;
    interpret F as DrawForward(10);
    interpret G as DrawForward(10);
    interpret - as TurnLeft(60);
    interpret + as TurnLeft(-60);
    rewrite F to F + G + + G - F - - F F - G + ;
    rewrite G to - F + G G + + G + F - - F - G ;
}
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