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


1 2 3 4 5 6 7 8 9 | 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); } } } } |