if (pixels[row][col] != color)
{
  pixels[row][col] = color;

  with (bounds)
  {
    if (row < .min_row) .min_row = row;
    if (row > .max_row) .max_row = row;

    if (col < .min_col) .min_col = col;
    if (col > .max_col) .max_col = col;
  }
}

