Hello. If I have an actor, that is just a square with gray shades. Is there any possibility, to let it change the colour? So it has green shades instead of gray.
private Color bluer(Color color)
{
int r = color.getRed();
int g = color.getGreen();
int b = color.getBlue();
return new Color(r/2, g/2, 255-(255-b)/2);
}Color color = image.getColorAt(0, 0); // gets original color image.setColorAt(0, 0, bluer(color)); // sets new color