Just made another update to hopefully fix the problem. I've also changed the status bar in the editor, please let me know if this causes any issues.
Here's my test program:
sub testPoint
pset 0, 0, rgb(0,0,0xFF): if "FF" != hex(-point(0,0)) then throw
pset 0, 0, rgb(0,0xFF,0): if "FF00" != hex(-point(0,0)) then throw
pset 0, 0, rgb(0xFF,0,0): if "FF0000" != hex(-point(0,0)) then throw
end
sub testImageScrape
cls
for z=0 to 255
for t=0 to 255
pset t+000,z,rgb(255-z,255-t,255-t)
pset t+257,z,rgb(255-t,255-z,255-t)
pset t+514,z,rgb(255-t,255-t,255-z)
pset z+000,(t/4)+260,rgb(255-t,0,0)
pset z+257,(t/4)+260,rgb(0,255-t,0)
pset z+514,(t/4)+260,rgb(0,0,255-t)
next
next
z=image(0,0,xmax,325)
z.show(0,350)
end
sub testImageLoad
url ="http://pngimg.com/uploads/tesla_car/tesla_car_PNG26.png"
open url as #1
i = image(#1)
x_left = xmax/4
y_top = ymax/4
r =xmax/4
y_step = 10
n_points =20
n = 0
while gg < 25
gg++
n= (n+1) mod n_points
x = x_left + r * sin(n* pi / n_points)
y = y_top + (n * y_step)
i.show(x,y, 1, 80)
delay 10
wend
i.show(20,20,1) :delay 100
i.show(201,20,1, 56) :delay 100
i.show(120,20,1, 56) :delay 100
i.show(40,120,1,100) :delay 100
j = image(#1)
j.show(10,425,4,20)
close #1
delay 1000
end
testPoint
testImageLoad
testImageScrape
testImageLoad