import java.applet.Applet; import java.awt.*; public class Kriipsujuku extends Applet{ int i,u,h; public void paint(Graphics g){ for(h=0;h<180;h=h+60){ for(i=0;i<60;i++){ g.setColor(Color.red); g.drawOval(20+i+(h*2),20,20,20); g.drawLine(30+i+(h*2),40,30+i+(h*2),100); g.drawLine(30+i+(h*2),40,i+i+(h*2),70); g.drawLine(30+i+(h*2),40,60+(h*2),70); g.drawLine(30+i+(h*2),100,i+i+(h*2),170); g.drawLine(30+i+(h*2),100,60+(h*2),170); try{Thread.sleep(50);}catch(Exception e){} g.setColor(Color.white); g.drawOval(20+i+(h*2),20,20,20); g.drawLine(30+i+(h*2),40,30+i+(h*2),100); g.drawLine(30+i+(h*2),40,i+i+(h*2),70); g.drawLine(30+i+(h*2),40,60+(h*2),70); g.drawLine(30+i+(h*2),100,i+i+(h*2),170); g.drawLine(30+i+(h*2),100,60+(h*2),170); } for(u=0;u<60;u++){ g.setColor(Color.red); g.drawOval(80+u+(h*2),20,20,20); g.drawLine(90+u+(h*2),40,90+u+(h*2),100); g.drawLine(90+u+(h*2),40,120+(h*2),70); g.drawLine(90+u+(h*2),40,60+u+u+(h*2),70); g.drawLine(90+u+(h*2),100,120+(h*2),170); g.drawLine(90+u+(h*2),100,60+u+u+(h*2),170); try{Thread.sleep(50);}catch(Exception e){} g.setColor(Color.white); g.drawOval(80+u+(h*2),20,20,20); g.drawLine(90+u+(h*2),40,90+u+(h*2),100); g.drawLine(90+u+(h*2),40,120+(h*2),70); g.drawLine(90+u+(h*2),40,60+u+u+(h*2),70); g.drawLine(90+u+(h*2),100,120+(h*2),170); g.drawLine(90+u+(h*2),100,60+u+u+(h*2),170); } } } }