Some while ago I explained that it is often possible to eliminate graphics flickering in LBB by concatenating an entire frame's worth of graphics commands into a single string. A good example of how well this works can be seen by modifying the Towers of Hanoi program recently posted to the LB group by bluatigro.
First run his program as published; you will probably find that the flicker is quite bad. Now modify sub show as below and see how much nicer it is:
Code:sub show
scan
m$ = "fill black; down"
for i = 0 to number
m$ = m$ + ";color ";kl$(i)
m$ = m$ + ";backcolor ";kl$(i)
m$ = m$ + ";place ";x(i)-size(i);" ";y(i)-20
m$ = m$ + ";boxfilled ";x(i)+size(i);" ";y(i)+20
next i
#m m$
CallDLL #kernel32, "Sleep" _
, 20 As long _
, ret As void
end sub
Richard.