i got a text that appears black but i want it in a different colour because since my backround is black you cant see it very well
public void changeColor(GreenfootImage img, Color currentColor, Color newColor) { for (int x = 0; x < img.getWidth(); x++) { for (int y = 0; y < img.getHeight(); y++) { if (img.getColorAt(x, y).equals(currentColor)) { img.setColorAt(x, y, newColor); } } } }