Data update
This commit is contained in:
parent
52a6ef48dd
commit
157b70a810
604 changed files with 14253 additions and 2100 deletions
|
|
@ -0,0 +1,21 @@
|
|||
local fn Sierpinski( x as long, y as long, n as long )
|
||||
long length
|
||||
|
||||
if n == 0
|
||||
text @"Menlo", 6.0, fn ColorRed, fn ColorYellow
|
||||
print %( x, y ) "*";
|
||||
else
|
||||
n = n - 1
|
||||
length = fn pow( 2, n )
|
||||
fn Sierpinski( x, y + length, n )
|
||||
fn Sierpinski( x + length, y, n )
|
||||
fn Sierpinski( x + length * 2, y + length, n )
|
||||
end if
|
||||
end fn
|
||||
|
||||
window 1, @"Sierpinski Triangle — Order 8", ( 0, 0, 516, 310 )
|
||||
WindowSetBackgroundColor( 1, fn ColorBlack )
|
||||
|
||||
fn Sierpinski( 1, 1, 8 )
|
||||
|
||||
HandleEvents
|
||||
Loading…
Add table
Add a link
Reference in a new issue