i have already done that all the pixels are in an array
this is how it loops for i,pixel in ipairs(pixels) do
for i,pixel in ipairs(pixels) do