Color detection for a given image?
in
Programming Questions
•
1 year ago
In my zombie game, the zombies are allowed to move only when the space in front of them is empty, and in this case, if the pixel matches the gray background. However, I do not know how to find the color of the pixel in front, though the get() method under the pixels section hold potential.
Does anyone know how to detect color, or can explain to me how the get() method works and what it returns?
1