@TempodiBasic I was wondering when your program ended so I put a Beep at the end, never heard it!
OK so maybe Sum never makes it to _Width but should to _Width -1, no? ! ???
WTH? is with Sum, Print, Print... Oh!!!
Needed a fix to quit when you expected it to.
Dim As Single Wsquare
, Hsquare
, a
, Repeat
, Left
, Top
, Sum
Wsquare = Wscreen / 2
Sum = Wsquare ' <<<<<<<<<<<<<<<<<<<<<<<<<<<< fix this to work as TempodiBasic thinks it should
Hsquare = Hscreen / 2
Repeat = 1
Line (Left
, Top
+ (Hsquare
* (a
- 1)))-(Left
+ Wsquare
, Top
+ (Hsquare
* a
)), white
, BF
' Line (Left, Top + (Hsquare * a))-(Left + Wsquare, Top + (Hsquare * (a + 1))), black, BF
Top = Top + Hsquare
Top = 0
Repeat = Repeat * 2
Left = Left + Wsquare
Wsquare = Wsquare / 2
Hsquare = Hsquare / 2
Sum = Sum + Wsquare
Print Sum
' >>>>>>>>>>>>>>>>>>>>>>>>>>>> what's going on Loop While Sum
<= Wscreen
- 1 ' ??? WTH no beep yet????
Yeah
@TempodiBasic nothing fancy but gets the job done, unless expecting to do something after... ha, ha!
Oh hey! There is a big difference along the right hand side of the graph depending whether you comment out the 2nd Line statement or not, that draws the Black rectangles. Check this side by side comparison: