
simple fractal
By: a guest on
Aug 6th, 2012 | syntax:
PureBasic | size: 0.26 KB | hits: 18 | expires: Never
OpenWindow(1,0,0,700,600,"")
StartDrawing(WindowOutput(1))
width=512
height=512
w=1
h=1
For y=1 To Log(height)/Log(2)
w=1
For x=1 To Log(width)/Log(2)
Box(w,h,w,h,x*y*6)
w*2
Next
h*2
Next
StopDrawing()
Repeat
Until WindowEvent()=#WM_CLOSE