MatthewPeterKelly/fractal-renderer

Generalize the "Barnsley Fern" fractal

Open

#153 opened on 2026年1月1日

GitHub で見る
 (1 comment) (0 reactions) (0 assignees)Rust (0 forks)github user discovery
good first issue

Repository metrics

Stars
 (6 stars)
PR merge metrics
 (平均マージ 1d 16h) (30d で 6 merged PRs)

説明

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.

コントリビューターガイド