L system: the Gosper curve

This is another L system curve sharing the same structure as Sierpinki arrowhead and the dragon curve

https://en.wikipedia.org/wiki/Gosper_curve

The Gosper curve can be represented using an L-system with rules as follows:

  • Angle: 60°
  • Axiom: A
  • Replacement rules:
    • A= A-B--B+A++AA+B-
    • B= +A-BB--B-A++A+B

the model attached is for 3 iterations.

and the conversion inside are

A=1 B=2 +=3 -=4

Sharing soon Hibert's space curve....

let me know if any question on how to do it. you just need to adjust the rule set of Sierpinski model or dragon curve model to get it.

​​​​​​​