The following will print out: "r199,g0,b0,a50"
when I believe it should be "r200,g0,b0,a50"
GreenfootImage pic = new GreenfootImage(5, 5); pic.setColor(new Color(255, 0, 0, 60)); pic.fill(); for (int i = 0; i < pic.getHeight(); i++) for (int k = 0; k < pic.getWidth(); k++) pic.setColorAt(k, i, new Color(200, 0, 0, 50)); Color c = pic.getColorAt(0, 0); System.out.println("r" + c.getRed() + ",g" + c.getGreen() + ",b" + c.getBlue() + ",a" + c.getAlpha());