Skip to main content
guest
Join | Help | Sign In
Liberty BASIC Community Wiki Home
guest| Join | Help | Sign In
Liberty BASIC Community Wiki
  • Wiki Home
  • Recent Changes
  • Pages and Files
  • Members
  • Home
    • Liberty BASIC FAQ
    • Contests
    • Tutorials
    • Science
    • Shared Code
    • Tips
    • DLLs
    • PublicDomainSprites
    • Member Pages
    • Links
    • Sandbox

fractel Phytagoras

Edit 0 1 …
  • 0 Tags
    • No tags
  • Notify
  • RSS
  • Backlinks
  • Source
  • Print
  • Export (PDF)
Older Version Newer Version

bluatigro bluatigro Apr 4, 2010

WindowWidth = DisplayWidth
WindowHeight = DisplayHeight
global w2 , qx
w2 = sqr( 2 ) / 2
qx = 5
nomainwin
open "Pytagoras" for graphics as #m
#m "trapclose [quit]"
timer 1000 , [tmr]
wait
[tmr]
#m "cls"
#m "goto " ; 400 + qx / 2 ; " 500"
#m "north"
#m "down"
#m "size 5"
call tree qx
#m "up"
#m "flush"
qx = qx + 1
wait
sub tree q
if q < 30 then
#m "go " ; q
#m "turn 90"
#m "go " ; q
#m "turn 90"
#m "go " ; q
else
#m "go " ; q
#m "turn -45"
call tree q * w2
#m "turn -90"
call tree q * w2
#m "turn -45"
#m "go " ; q
end if
end sub
[quit]
close #m
end
Help · About · Pricing · Privacy · Terms · Support · Upgrade
Contributions to https://basic.wikispaces.com/ are licensed under a Creative Commons Attribution Share-Alike 2.5 License. Creative Commons Attribution Share-Alike 2.5 License
Portions not contributed by visitors are Copyright 2018 Tangient LLC
TES: The largest network of teachers in the world
Turn off "Getting Started"
  1. Home
  2. ...
Loading...