Practical No.
: 29
Practical Name : Develop program for implement the shapes using applet like lines
and rectangle,circle and ellipse,arcs,polygon with fill polygon method.
Roll No. : 56
Student Name: Abhay Manik Uchit
-
-
Program:
import [Link].*; import
[Link].*;
public class Pr29 extends Applet
{
public void paint(Graphics g)
{
[Link]([Link]);
//Color c=new Color(150,20,100);
//[Link](c);
[Link](20,40,250,250)
; [Link](50,100,50,70);
[Link](185,100,50,70);
[Link](138,160,138,210);
[Link](138,210,155,210);
[Link](148,106,100,100,180,180);
}
}
/*
<html>
<applet code=[Link] height=300 width=300>
</applet>
</html> */
Output :