Skip to content

Constantiner/sierpinski-triangle-react

Folders and files

NameName
Last commit message
Last commit date
Apr 18, 2024
Jul 30, 2023
Apr 18, 2024
Apr 18, 2024
Jul 30, 2023
Jul 30, 2023
Jul 31, 2023
Jul 30, 2023
Jul 30, 2023
Feb 28, 2024
Jul 30, 2023
Apr 18, 2024
May 2, 2024
Apr 18, 2024
May 2, 2024
May 2, 2024
Apr 22, 2024
Apr 22, 2024
Apr 18, 2024
Apr 18, 2024

Repository files navigation

sierpinski-triangle-react

Stand With Ukraine

This project is a recursive implementation of the Sierpiński triangle using React, Canvas, and TypeScript. The Sierpiński triangle is a fractal named after Polish mathematician Wacław Sierpiński. The triangle is formed by recursively dividing an equilateral triangle into smaller equilateral triangles and removing the central triangle. The resulting pattern is a beautiful and intricate fractal. In this project, we use React to render the Sierpiński triangle on a Canvas element and TypeScript for strict typing. The recursive implementation allows for creating Sierpiński triangles of varying sizes and levels of detail.

The demo is available here.

Thanks this article for the inspiration.