🌍 Public
Viewing a saved revision (read-only)
8692a764e9ff4663b8b1fc3e1d157835
Sierpinsy Triangle
This example renders a colorful Sierpinski triangle fractal using the HTML5 Canvas API. The visualization recursively draws the triangle to a depth of five, with each smaller triangle assigned a random bright hue via the `hsl()` color function. It uses basic Canvas drawing methods like `moveTo`, `lineTo`, and `fill`, and the display automatically resizes with the window.
AI-generated description