{"version":"1.0","type":"rich","title":"Sierpinski Triangle","description":"This interactive Sierpinski triangle fractal renders recursively to a canvas, with its recursion depth controlled by the mouse’s horizontal position. The visualization shows how a geometric fractal pattern changes complexity as the mouse moves from left (shallow depth) to right (deeper recursion). The code uses the Canvas API’s `clearRect`, `beginPath`, and `fill` methods to draw triangles, and scales the canvas dimensions by `window.devicePixelRatio` for high-resolution displays. The fractal is generated from a fixed initial triangle with depth up to 10 based on mouse X position.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/c3de014a4cce4e71be6d6f4d23934833?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}