Skip to content

susanwalker/sierpinski_triangle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SierpinskiTriangle

This project generates a SierpinskiTriangle using Elixir and Erlang Graphic Drawer (:egd).

What is a SierpinskiTriangle?

Wikipedia:

The Sierpiński triangle (sometimes spelled Sierpinski), also called the Sierpiński gasket or Sierpiński sieve, is a fractal attractive fixed set with the overall shape of an equilateral triangle, subdivided recursively into smaller equilateral triangles

Generated Triangle

generate_image

Usage

iex> SierpinskiTriangle.draw(10)
:ok

The file is generated at ./test.png

About

Sierpinski Triangle generator in Elixir

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages