Chaos game, a little program.

Written by smackaay on May 21, 2009 Categories: Programming Tags: , ,

Was bored for a little while today so I made a quick program in Freebasic to produce a Sierpinski Triangle and a some sort of pentagonal fractal. This little program uses the chaos game method to produce it.

seirpinski triangle

seirpinski triangle


seirpinski at 5

seirpinski at 5



I think the result is kind of interesting, I’ll post the crummy little program.
choppy.bas
Nothing special with this, just the result of boredom. You could change the radius and the ox and oy variables to look deeper into the triangle/pentagon.

No Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Security Code: