for (int x = mXCenter - maxRadius; x <= mXCenter + maxRadius; x++) {
for (int y = mYCenter - maxRadius; y <= mYCenter + maxRadius; y++) {
long d2 = (x - mXCenter) * (x - mXCenter) + (y - mYCenter) * (y - mYCenter);
if (d2 <= maxRadius2) {
int d = (int) Math.round(Math.sqrt(d2));
<BUG>double brightness = getBrightness(pixelReader.getColor(x, y));
</BUG>
addInfo(d, brightness);
}
}

for (int x = mXCenter - maxRadius; x <= mXCenter + maxRadius; x++) {
for (int y = mYCenter - maxRadius; y <= mYCenter + maxRadius; y++) {
long d2 = (x - mXCenter) * (x - mXCenter) + (y - mYCenter) * (y - mYCenter);
if (d2 <= maxRadius2) {
int d = (int) Math.round(Math.sqrt(d2));
float brightness = getBrightness(pixelReader.getColor(x, y));
addInfo(d, brightness);
