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. */ 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); int[]puntx={370,370,385,385};int[]punty={150,160,110,100}; for (int i=0;i<255;i=i+5) {for (int e=0;e<255;e=e+5) {for (int w=0;w<255;w=w+5) {micolor=new Color(i,e,w); g.setColor(micolor); g.fillRect(i+w,e+w,5,5); g.fillRect(285,85,80,30); g.fillRect(320,115,10,100); g.fillOval(325,85,40,15); 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.fillPolygon(puntx,punty,4); g.setColor(Color.white); g.drawString("0=[]=0",297,107);} } } } 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() { } }