I got the code like this:
the bugg report say its a null pointerExeption in the first line.
like this it say the x-Coordinate is 600 but has to be lower than 600.
But the "-1" doesen't work so the problem must be something else.
EDIT: what i want is to get the color of the pixel in the right bottom.
First guess was that the hole thing fails in the constructer bur even in the act-cycle it doesent work.
Color c = getColorAt(getWidth()-1,getHeight()-1); float[] colorValue = {c.getRed(),c.getGreen(),c.getBlue()};
Color c = getColorAt(getWidth(),getHeight()); float[] colorValue = {c.getRed(),c.getGreen(),c.getBlue()};