Don't like ads? PRO users don't see any ads ;-)
Guest

simple fractal

By: a guest on Aug 6th, 2012  |  syntax: PureBasic  |  size: 0.26 KB  |  hits: 18  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. OpenWindow(1,0,0,700,600,"")
  2.  
  3. StartDrawing(WindowOutput(1))
  4.  
  5.  
  6. width=512
  7. height=512
  8. w=1
  9. h=1
  10. For y=1 To Log(height)/Log(2)
  11. w=1
  12. For x=1 To Log(width)/Log(2)
  13. Box(w,h,w,h,x*y*6)
  14.  
  15. w*2
  16. Next
  17. h*2
  18. Next
  19.  
  20.  
  21. StopDrawing()
  22. Repeat
  23. Until WindowEvent()=#WM_CLOSE