Dot fractal generator
Vizualization of a fractal drawing using random dot selection
Utilize p5.js for real-time graphics rendering.
The algorithm
- Draw initial dots arranged in a circular pattern (6 by default)
- Select the start dot—the first dot initially
- Select a random dot
- Draw a new dot that divides the segment between start and selected dots in a certain ratio (1/3 by default)
- Now this dot is a start dot
- Repeat steps 3—5
Features
- Number of vertex: set the number of initial dots in the shape.
- Dot size: define the size of the dots.
- Ratio: specify the ratio for positioning new dots.
- Number of dots: determine the total number of dots to be drawn.
- Delay: set the delay between drawing new dots.