Stochastic Sierpinski Save

A stochastic method to generate an approximation to the Sierpinski triangle

Project README

About

A stochastic method to generate an approximation to the Sierpinski triangle. Made using p5.js.

Demo

Imgur link

Algorithm

  1. Pick a random point p inside the triangle (algorithm).
  2. Draw it.
  3. Pick a random vertex of the triangle and find its midpoint with p. Set p to that midpoint.
  4. Go to step 2.

Why it works

Not sure. Need to figure this one out.

Open Source Agenda is not affiliated with "Stochastic Sierpinski" Project. README Source: ajnirp/stochastic_sierpinski
Stars
41
Open Issues
1
Last Commit
2 years ago

Open Source Agenda Badge

Open Source Agenda Rating