private void plot(int x, int y) {
if ((x < 0) || (x >= width)) return;
if ((y < 0) || (y >= height)) return;
if (defaultMode == MODE_REPLACE) {
grid[x + y * width] = defaultCol;
<BUG>} else if (defaultMode == MODE_MIX) {
</BUG>
int n = x + y * width;
long c = grid[n];
if (c < 0) {

private void plot(int x, int y) {
if ((x < 0) || (x >= width)) return;
if ((y < 0) || (y >= height)) return;
if (defaultMode == MODE_REPLACE) {
grid[x + y * width] = defaultCol;
} else if (defaultMode == MODE_ADD) {
int n = x + y * width;
long c = grid[n];
if (c < 0) {
