import java.applet.Applet; import java.awt.Graphics; import java.awt.Color; import java.awt.Font; public class Angulo extends Applet { /** * Initializes the applet. You never need to call this directly; it is * called automatically by the system once the applet is created. */ int estado=1; public void paint(Graphics g) {Color micolor; Font f = new Font("TimesRoman",Font.BOLD,20); int[]puntosx={280,265,265,280};int[]puntosy={150,200,210,160}; g.setFont(f); for (int i=0;i<255;i=i+5) {micolor=new Color(i,255-i,230-i); g.setColor(micolor); g.fillRect(285,85,80,30); g.fillRect(320,115,10,100); g.fillRect(285,210,80,10); g.fillRect(285,210,10,80); g.fillRect(355,210,10,80); g.fillRect(280,150,90,10); g.fillPolygon(puntosx,puntosy,4); g.setColor(Color.white); g.drawString("0=[]=0",297,107);for (int j=0;j<80000;j++) {} } } public void init() { } /** * Called to start the applet. You never need to call this directly; it * is called when the applet's document is visited. */ public void start() { } /** * Called to stop the applet. This is called when the applet's document is * no longer on the screen. It is guarenteed to be called before destroy() * is called. You never need to call this method directly */ public void stop() { } /** * Cleans up whatever resources are being held. If the applet is active * it is stopped. */ public void destroy() { } }