Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private boolean isInside(Bod bod) {
- int prusecik = 0;
- for (int i = bod.x; i <= img.getWidth(); i++) {
- if (img.getRGB(bod.i, bod.y) != img.getRGB(1, 1)) {
- prusecik++;
- }
- }
- if (prusecik % 2 == 1)
- return true;
- return false;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement