MatthewPeterKelly/fractal-renderer

Generalize the "Barnsley Fern" fractal

Open

#153 ouverte le 1 janv. 2026

Voir sur GitHub
 (1 commentaire) (0 réactions) (0 assignés)Rust (0 forks)github user discovery
good first issue

Métriques du dépôt

Stars
 (6 stars)
Métriques de merge PR
 (Merge moyen 1j 16h) (6 PRs mergées en 30 j)

Description

The Barnsley fern fractal is great - let's make it better. Some ideas:

  • Blurred pixels: for each "linear map", add the option to sample the region near the resulting point, rather than right on top of it. This would enable, for example, the stem of the fern in the barnsley fern to be wider and with a somewhat smoother edge, rather than a single pixel.
  • Arbitrary Maps: the barnsley fern hard-codes four linear maps... but there are other versions of the fractal with more (or less). Examples might be the "leaf" or "dragon" fractals by Paul Bourke.
  • Color by map: for each of the maps, add the RGB color to the map, rather than at the fractal level. This would enable different features of the fractal to be colored differently. For example, making the stem of the fern a darker shade than the leaves.

Guide contributeur