Here is my updated version with more features: https://scratch.mit.edu/projects/609019691 This project allows you to create a self similar fractal by arranging squares. For divisions on a side choose a number between 2 and 17 (above 17 and we meet the Scratch clone limit) Some suggested fractals to make. A) 3 sides remove the middle (Sierpinski Carpet) B) 2 sides, remove upper right, then slide upper left above the bottom 2, but in the middle (Sierpinski Triangle) C) 3 sides, remove all but the far left and far right in the middle row (Cantor set)
This project randomly samples (and plots) 300,000 points. The arrangement of the squares determines an iterated function system (in this case all the scaling factors are the same and determined by the number of divisions) https://en.wikipedia.org/wiki/Iterated_function_system