import java.awt.Color;


/**
 * A simple application that demonstrates how to use the
 * GraphicsWindow and FrameBuffer classes
 *
 * @author  Prof. David Bernstein, James Madison University
 * @version 1.0
 */
public class SimpleApplication
{
    /**
     * The entry point of the application
     *
     * @param args  The command line arguments
     */
    public static void main(String[] args)
    {
       Color            gold, purple;       
       FrameBuffer      fb;       
       GraphicsWindow   window;
       

       window = new GraphicsWindow();
       fb     = window.getFrameBuffer();

       // Official JMU Colors (in hexadecimal)
       gold   = new Color(0xC2, 0xA1, 0x4D);
       purple = new Color(0x45, 0x00, 0x84);
       

       fb.clear(purple);
       for (int x=-50; x<=50; x++)
       {
          for (int y=-100; y<=100; y++)
          {
             fb.setPixel(x, y, gold);             
          }
       }
       fb.show();       
    }
    

}
