You are on page 1of 1

Aldi Ichsan Kurniawan g.

fillPolygon(x3, y3, pts3);


201643502086 int x4[] = {150, 165, 177, 177, 165,
Informatika R7V 150};
Komputer Grafik int y4[] = {35, 35, 45, 55, 65, 65};
int pts4 = x4.length;
import java.applet.Applet; g.setColor(Color.white);
import java.awt.Color; g.fillPolygon(x4, y4, pts4);
import java.awt.Graphics; //End D//

public class Aldoyz extends Applet { //Start I//


public void paint (Graphics g){ int x5[] = {195, 230, 230, 222, 222,
//Start A// 230, 230, 195, 195, 204, 204, 195};
int x1[] = {0, 30, 50, 80, 60, 50, 30, int y5[] = {20, 20, 35, 35, 65, 65, 80,
20}; 80, 65, 65, 35, 35};
int y1[] = {80, 20, 20, 80, 80, 60, 60, int pts5 = x5.length;
80}; g.setColor(Color.black);
int pts1 = x1.length; g.fillPolygon(x5, y5, pts5);
g.setColor(Color.black); //End I//
g.fillPolygon(x1, y1, pts1);
int x2[] = {40, 33, 48}; //Start 2nd I//
int y2[] = {35, 50, 50}; int x6[] = {265, 300, 300, 292, 292,
int pts2 = x2.length; 300, 300, 265, 265, 274, 274, 265};
g.setColor(Color.white); int y6[] = {20, 20, 35, 35, 65, 65, 80,
g.fillPolygon(x2, y2, pts2); 80, 65, 65, 35, 35};
//End A// int pts6 = x6.length;
g.setColor(Color.black);
//Start L// g.fillPolygon(x6, y6, pts6);
int x[] = {85, 85, 130, 130, 100, 100}; //End 2nd I//
int y[] = {20, 80, 80, 65, 65, 20};
int pts = x.length; //Start a Period//
g.setColor(Color.black); g.fillOval(305, 65, 15, 15);
g.fillPolygon(x, y, pts); //End of a Period//
//End L// }
}
//Start D//
int x3[] = {135, 170, 190, 190, 170,
135};
int y3[] = {20, 20, 35, 65, 80, 80};
int pts3 = x3.length;
g.setColor(Color.black);

You might also like