import uwcse.graphics.*; // access the graphics utilities in the uw library import java.awt.Color; // access the Color class /** *

* A HolloweenScene displays pumpkins, candles, spiders and a fourth element of * your choice in a graphics window *

* * @author Your name here */ public class HalloweenScene { /** The graphics window that displays the picture */ private GWindow window; /** * Creates a picture */ public HalloweenScene() { // The graphics window // The window is by default 500 wide and 400 high this.window = new GWindow("Halloween scene"); this.window.setExitOnClose(); // so that a click on the close box of // the // window terminates the application // Background (black here) Rectangle bgnd = new Rectangle(0, 0, window.getWindowWidth(), window .getWindowHeight(), Color.black, true); this.window.add(bgnd); // Create the scene elements // e.g. a candle in the lower area 1.5 times the normal size new Candle(100, 300, 1.5, this.window); } // entry point of the application public static void main(String[] args) { new HalloweenScene(); } }