Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Sierpinsy Triangle

Public visualization

Viewing a saved revision (read-only)

8692a764e9ff4663b8b1fc3e1d157835

Sierpinsy Triangle

1 star0🌍 Public
CCurran Kelleher
Last edited Aug 2, 2025
Created on Aug 1, 2025
Forked from HTML Starter

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