w, h = 351, 225 p = {} for y = 0, h-1 do for x = 0, w-1 do v = 0 if x >= 10 then v = -1 end p[y*w+x] = v end end