import java.awt.*; import java.applet.Applet; import java.awt.event.*; public class kinnas extends Applet{ public void paint(Graphics g){ g.setColor(Color.red); int a=100, b=400, c=200; while(c>50){ g.drawLine(a,c,b,c); a=a+3; b=b-3; c=c-3; } g.drawLine(100,200,250,50); g.drawLine(250,50,400,200); g.setColor(Color.pink); int x=100, y=200, laius=100, korgus=100; while(laius>5){ g.drawOval(x, y, laius, korgus); g.drawOval(x+100, y, laius, korgus); g.drawOval(x+200, y, laius, korgus); laius=laius/2; korgus=korgus/2; x=x+laius/2; y=y+laius/2; } g.setColor(Color.yellow); int d=100, e=5; while (d<400){ g.drawLine(d,300,d,350); g.drawLine(d+e,326,d+e,350); d=d+10; } g.setColor(Color.green); int z=350; while(z<400){ g.drawLine(100,z,400,z); z=z+4; } g.setColor(Color.cyan); int f=100, h=400, lai=100, kor=100; while(lai>5){ g.drawRect(f, h, lai, kor); g.drawRect(f+100, h, lai, kor); g.drawRect(f+200, h, lai, kor); lai=lai-10; kor=kor-10; f=f+5; h=h+5; } g.setColor(Color.blue); int u=500; while(u<600){ g.drawLine(100,u,400,u); u=u+4; } int t=100, k=5; while (t<400){ g.drawLine(t,500,t,600); t=t+4; } int o=100; while (o<400){ g.setColor(Color.magenta); g.fillOval(o,600,10,10); o=o+10; } g.setColor(Color.red); int m=100, n=5; while (m<400){ g.drawLine(m+n,610,m+n,635); g.drawLine(m,610,m,660); m=m+10; } g.drawLine(100,200,100,610); g.drawLine(400,200,400,660); } public static void main(String argumendid[]){ Frame f=new Frame("IMEKAUNIS LABAKINNAS - made by Airin & Aveli"); f.add(new kinnas()); f.setSize (500, 720); f.setVisible (true); f.addWindowListener(new Raamikuular()); } } class Raamikuular extends WindowAdapter{ public void windowClosing(WindowEvent e){ System.exit(0); } }