Thanks, I tried again that method but I couldn't detect transparent colors. Then I changed the type of the array to integer and that solved the problem.
Performance improved a little but this will help me a lot to debug stuff more quickly.
0そうだね プレイ済み