lunes, 3 de agosto de 2009

11




//Aplicación que dibuja el logo de Superman
import java.awt.*;
import java.applet.*;
import java.awt.Color;

public class DoomsDay extends Applet
{
public void paint(Graphics sup)
{
sup.setColor(Color.black);
sup.fillRect(0,0,300,320);

int XARef[]={185,43,10,110,255,185};
int YARef[]={17,54,116,310,75,17};
int ADatos=6;
sup.setColor(Color.red);
sup.fillPolygon(XARef, YARef, ADatos);

int XBRef[]={130,90,110,130};
int YBRef[]={220,220,260,220};
int BDatos=4;
sup.setColor(Color.yellow);
sup.fillPolygon(XBRef, YBRef, BDatos);

int XCRef[]={55,60,65,70,75,80,85,120,125,130,135,140,145,150,155,155,150,145,140,135,130,105,102,100,95,90,85,80,75,70,65,55};
int YCRef[]={165,166,167,168,169,170,170,170,169,168,178,170,172,173,175,180,185,190,193,195,195,195,190,185,180,178,177,180,183,187,187,165};
int CDatos=32;
sup.setColor(Color.yellow);
sup.fillPolygon(XCRef, YCRef, CDatos);

int XDRef[]={95,120,125,130,135,140,145,150,155,155,150,145,140,138,135,133,130,125,124,100,95};
int YDRef[]={170,170,169,168,170,170,172,173,175,180,185,190,193,190,185,182,180,176,175,175,170};
int DDatos=21;
sup.setColor(Color.blue);
sup.fillPolygon(XDRef, YDRef, DDatos);

int XERef[]={57,50,45,25,27,35,38,40,39,38,40,40,43,45,50,55,57,57};
int YERef[]={76,78,80,115,118,130,130,125,120,115,110,105,100,95,90,85,80,76};
int EDatos=18;
sup.setColor(Color.yellow);
sup.fillPolygon(XERef, YERef, EDatos);

int XFRef[]={160,145,142,145,148,150,153,155,157,162,163,160};
int YFRef[]={52,56,60,63,65,67,70,75,79,77,53,52};
int FDatos=12;
sup.setColor(Color.yellow);
sup.fillPolygon(XFRef, YFRef, FDatos);

int XGRef[]={190,145,145,143,141,139,135,130,125,120,115,110,105,100,95,90,85,80,75,70,68,66,67,69,72,75,80,85,90,95,100,186,110,115,120,150,155,160,165,170,175,180,184,186,188,214,216,193,190,190};
int YGRef[]={92,100,95,90,85,80,75,70,65,63,62,63,64,66,68,70,73,75,80,85,90,95,100,105,110,113,115,116,115,114,113,111,110,110,110,110,111,113,115,118,120,125,132,131,130,86,85,63,64,92};
int GDatos=50;
sup.setColor(Color.yellow);
sup.fillPolygon(XGRef, YGRef, GDatos);

int XHRef[]={130,135,139,139,141,143,145,145,180,208,197,190,180,170,160,180,120,115,110,105,103,102,105,107,110,115,120,125,130};
int YHRef[]={70,75,75,80,85,90,95,100,100,95,102,110,108,109,110,110,110,112,111,105,100,95,90,85,80,75,68,70,70};
int HDatos=29;
sup.setColor(Color.blue);
sup.fillPolygon(XHRef, YHRef, HDatos);

int XIRef[]={185,230,290,255,185};
int YIRef[]={17,20,75,75,17};
int IDatos=5;
sup.setColor(Color.orange);
sup.fillPolygon(XIRef, YIRef, IDatos);

int XJRef[]={255,290,150,110,255};
int YJRef[]={75,75,305,310,75};
int JDatos=5;
sup.setColor(Color.gray);
sup.fillPolygon(XJRef, YJRef, JDatos);


}
}

No hay comentarios:

Publicar un comentario