Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Gosper Curve #13

Open
trebeljahr opened this issue Sep 29, 2022 · 0 comments
Open

Add Gosper Curve #13

trebeljahr opened this issue Sep 29, 2022 · 0 comments
Labels
new-fractal Add a new fractal to the garden.

Comments

@trebeljahr
Copy link
Owner

Description

Add the Gosper Curve Fractal.

Inspiration

Wikipedia - Gosper Curve

Type

L-System

Difficulties

Centering this might be tricky. I didn't find a good way to do it, that's why I didn't include it in the Fractal Garden so far. But the L-System exists:

const gosperCurve = {
  maxIterations: 8,
  axiom: "XF",
  draw: drawRules,
  angle:  60,
  replace: {
    X: "X+YF++YF-FX--FXFX-YF+",
    Y: "-FX+YFYF++YF+FX--FX-Y",
  },
};
@trebeljahr trebeljahr added enhancement new-fractal Add a new fractal to the garden. and removed enhancement labels Sep 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new-fractal Add a new fractal to the garden.
Projects
None yet
Development

No branches or pull requests

1 participant