for (int x = 0; x < getWidth(); x++) { for (int y = 0; y < getHeight(); y++) { GreenfootImage bg = getBackground(); Color beep = bg.getColorAt(x,y); Color darken = Color darken; } }
for (int x = 0; x < getWidth(); x++) { for (int y = 0; y < getHeight(); y++) { GreenfootImage bg = getBackground(); Color beep = bg.getColorAt(x,y); Color darken = Color darken; } }
Color darken = beep.darker();
bg.setColorAt(x, y, darken);