{"version":"1.0","type":"rich","title":"Sierpinski Triangle Example","description":"This example shows a Sierpinski triangle fractal rendered as an interactive tree-like structure on a Canvas element. The fractal is drawn with recursive triangle subdivision, and the branching depth changes dynamically based on the mouse position. The code uses the Canvas 2D API with `beginPath`, `moveTo`, `lineTo`, and `fill` methods to draw triangles. It accommodates high pixel density displays by scaling the canvas resolution using `window.devicePixelRatio`. The mouse event listener recalculates the depth from the cursor's horizontal position, then clears and redraws the entire fractal.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/ee88d454c3604a16a97eb5abcbaf59ef?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}