Dot fractal generator

Vizualization of a fractal drawing using random dot selection

Utilize p5.js for real-time graphics rendering.

The algorithm

  1. Draw initial dots arranged in a circular pattern (6 by default)
  2. Select the start dot—the first dot initially
  3. Select a random dot
  4. Draw a new dot that divides the segment between start and selected dots in a certain ratio (1/3 by default)
  5. Now this dot is a start dot
  6. Repeat steps 3—5

Features