code: public final void setColor(Color color, int x, int y) {
          int[] pixels = ((DataBufferInt)img.getRaster().getDataBuffer()).getData();
          int red   = (int)(color.getRed()   * 255.0);
          int green = (int)(color.getGreen() * 255.0);
          int blue  = (int)(color.getBlue()  * 255.0);
          int alpha = (int)(color.getAlpha() * 255.0);
          pixels[x + y * width] = alpha << 24 |
                                  red   << 16 |
                                  green << 8  |
                                  blue;
      }
docs: Sets the color value of the pixel data in this Image.
  
  @param color
  <<<<<<< HEAD
  The color value of the pixel.
  =======
  The color value of the pixel.
  >>>>>>> 16121fd9fe4eeaef3cb56619769a3119a9e6531a
  @param x
  The x-coordinate of the pixel.
  @param y
  The y-coordinate of the pixel.