function containsColor(img, color)
local w, g = img.width-1, img.getInt
for y = 0, img.height-1 do
for x = 0, w do
if g(x, y) == color then
return true
end
end
end
return false
endtest run test run with input download show line numbers
Travelled to 12 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment