lsystem SierpinskiPPCG {
set symbols axiom = F - G - G;
set iterations = 7;
interpret F as DrawForward(10);
interpret G as DrawForward(10);
interpret - as TurnLeft(120);
interpret + as TurnLeft(-120);
rewrite F to F - G + F + G - F;
rewrite G to G G;
}
process all with SvgRenderer;
Copy the above into this site to see a preview.