Chaos game: Difference between revisions

545 bytes removed ,  12 days ago
 
Line 1,177:
 
'''Solution'''
 
When using n points equally spaced over a circle we get a [https://en.wikipedia.org/wiki/N-flake Sierpiński n-gon]. However, the proportion (1/2 for a triangle) is different according to the following formula:
 
[[File:Fōrmulæ - Chaos game 01.png]]
 
[[File:Fōrmulæ - Chaos game 02.png]]
 
[[File:Fōrmulæ - Chaos game 03.png]]
 
The program is:
 
[[File:Fōrmulæ - Chaos game 04.png]]
 
'''Test casescase. Sierpiński triangle'''
 
[[File:Fōrmulæ - Chaos game 05.png]]
 
[[File:Fōrmulæ - Chaos game 06.png]]
 
Notice that:
 
* The Sierpiński's 4-gon is NOT a [https://en.wikipedia.org/wiki/Sierpi%C5%84ski_carpet Sierpiński carpet], it is a solid square.
* The Sierpiński's 5-gon is a pentaplexity without the central tile.
 
=={{header|FutureBasic}}==
2,120

edits