HomeAlgorithms & AIBox-Counting Fractal Dimension Estimator (2D)

Box-Counting Fractal Dimension Estimator (2D)

Interactive 2D box-counting simulator: overlay a multi-scale grid on point patterns (Sierpinski triangle, 2D Cantor dust, random cloud, confined line) and watch a live log-log regression plot estimate each pattern's fractal dimension, with drag-to-pan and scroll-to-zoom on the pattern view.

Algorithms & AI2DAdvanced60 FPS📱 Mobile-adapted⇄ 3D version
2d-pattern-recognition-advanced ↗ Open standalone

This simulator runs the box-counting algorithm — the workhorse of computational pattern-complexity analysis — on four different 2D point sets live in your browser. Choose a pattern (a chaos-game Sierpinski triangle, a 2D Cantor dust, a uniform random cloud, or a thin line confined inside the plane), and the scene overlays a square grid at six scales, counting how many cells each pattern touches at every scale. A live log-log regression panel plots log N(s) against log(1/s) and turns those six points into a single number, the estimated fractal dimension D, updating as you regenerate the pattern, change its point density, or drag/zoom your view of the plane — letting you watch a genuinely algorithmic pattern-recognition measurement converge toward each shape's known theoretical dimension.

⚙ Under the hood

Run the box-counting algorithm on live 2D point patterns — a Sierpinski triangle, a 2D Cantor dust, a random cloud and a line confined inside the plane — and watch a live log-log regression plot estimate each pattern's fractal dimension in real time, with drag-to-pan and scroll-to-zoom on the view.

fractal-dimensionbox-countingpattern-recognitionalgorithmsregressioncanvas-2d

2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)