This code draws a window and a progress bar in it, to manipulate the progress bar you need to change the
progress
progress=0 (means that progress bar will be on start)
progress=100 (means that progress bar will be on end)
and also when you are changing the progress vaule, you need to add
box 165,270,x2,295
as your next line
`draw a window
ink rgb(124,124,124),142
box 155,220,460,350
ink 255,142
box 155,220,460,235
set cursor 155,220
ink 1,142
print "Progress bar simulation"
ink 255,142
box 165,270,435,295
ink rgb(255,200,255),142
box 165,270,x2,295
progress=0
for progress=0 to 100
x2=166+progress*2.68
box 165,270,x2,295
next progress
so, if you want to make the progress bar be on 50% and without just "running towards" 100%, this would be the code :
`draw a window
ink rgb(124,124,124),142
box 155,220,460,350
ink 255,142
box 155,220,460,235
set cursor 155,220
ink 1,142
print "Progress bar simulation"
ink 255,142
box 165,270,435,295
ink rgb(255,200,255),142
box 165,270,x2,295
`-----------
progress=50
x2=166+progress*2.68
box 165,270,x2,295
`-----------
I hope someone will find this little snippet usefull
And here is a newer version :
`draw a window
ink rgb(124,124,124),142
box 155,220,460,350
ink 255,142
box 155,220,460,235
set cursor 155,220
ink 1,142
print "Progress bar simulation"
ink 255,142
box 165,270,435,295
ink rgb(255,200,255),142
box 165,270,x2,295
q=255
progress=0
for progress=0 to 100
dec q,2.4
ink rgb(255,200,q),1
x2=166+progress*2.68
box 165,270,x2,295
next progress