@dave1707 the URL request aka the code didn’t load the picture. Did you test before you sent me that?
displayMode(FULLSCREEN)
function setup()
bcolor= 0
x=WIDTH/2
y=HEIGHT/2+100
w,h=200,50
left=x-w/2
right=x+w/2
bottom=y-h/2
top=y+h/2
rectMode(CENTER)
str=""
end
function draw()
background(40, 40, 50)
if img==nil then
fill(255)
text("Loading image",WIDTH/2,HEIGHT/2)
else
sprite(img,WIDTH/2,HEIGHT/2,700)
end
if bcolor == 0 then
fill(255, 0, 0, 255)
else
fill(128,0,0,255)
end
rect(x,y,w,h)
fill(255)
strokeWidth(6)
text(str,x,y)
end
function getImg()
http.request("https://"..str,gotImage)
end
function gotImage(image,status,header)
img=image
end
function touched(t)
if t.x > left and t.x < right and t.y > bottom and t.y < top then
showKeyboard()
bcolor=1
str=""
end
end
function keyboard(key)
if key==RETURN then
bcolor=0
val=tostring(str)
else
str=str..key
end
end