Sierpinski triangle/Graphical: Difference between revisions
Content added Content deleted
Line 1,261: | Line 1,261: | ||
if ( level == 1 ) |
if ( level == 1 ) |
||
⚫ | |||
line to x, y |
line to x, y |
||
⚫ | |||
line to x+w2, y+h |
line to x+w2, y+h |
||
line to x+w, y |
line to x+w, y |
||
line to x, y |
line to x, y |
||
else |
else |
||
⚫ | |||
fn SierpinskyTriangle( level-1, x, y, w2, h2 ) |
fn SierpinskyTriangle( level-1, x, y, w2, h2 ) |
||
⚫ | |||
fn SierpinskyTriangle( level-1, x+w4, y+h2, w2, h2 ) |
fn SierpinskyTriangle( level-1, x+w4, y+h2, w2, h2 ) |
||
fn SierpinskyTriangle( level-1, x+w2, y, w2, h2 ) |
fn SierpinskyTriangle( level-1, x+w2, y, w2, h2 ) |