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.