Hello, here is a way to draw something on the screen from an array. This snippet will draw a small TV on the screen.
-- hexa color. 1 hexa char = 1 pixel.
tv={"00000d000d",
"000000d0d",
"0000000d",
"44444444444",
"40000000444",
"40330330444",
"40000000464",
"40033300444",
"40000000464",
"44444444444"}
-- position x, pos. y, transparent color to ignore, array to draw
function drawArray(x,y,c,a)
for i=1,#a do
for j=1,#a[i] do
cc=tonumber(string.sub(a[i],j,j),16)
if(cc~=c) then
pix(x+j-1,y+i-1,cc)
end --ifcc
end --forj
end --fori
end --drawArray
drawArray(120,60,0,tv)