import java.awt.*;
import java.applet.*;

// this is a Java applet that draws a house
// Assignment 1, CSci 1211
// Created by Elena Machkasova, 1/16/04
// Modified by ...

public class House extends Applet {

    public void paint(Graphics g) {
	// set the background to white
	g.setColor(Color.white);
	g.fillRect(0, 0, 310, 400);

	// graw the red roof:
	g.setColor(Color.red);	
	Polygon p = new Polygon();
	p.addPoint(40, 100);
	p.addPoint(260, 100);
	p.addPoint(150, 50);
	
	// Correction:
	g.fillPolygon(p);
	
	
	// fill in your code here:
	
    }
}