Sunday 23 September 2012

Java Program To Display A Human Face - Graphics

/*Program Displaying the human face suing basic figures, circles, arcs, lines, etc. Done using Applets.

/* < applet code = "Face" width = 500 height =500>
< /applet> */

import java.awt.*;
import java.applet.*;

public class Face extends Applet
{
public void paint(Graphics g)
{
g.drawString("Hi !!!!!!!!!!!!!!! I Am Ninad.",20,30);

g.drawArc(30,50,200,200,0,360); // Main Face
g.drawArc(82,80,30,30,20,160); //Left Eye Brow
g.fillArc(85,85,25,25,0,360); //Left Eye
g.drawArc(152,80,30,30,20,160); //Right Eye Brow
g.fillArc(155,85,25,25,0,360); //Right Eye
g.drawRect(90,190,80,20); //Mouth

g.drawLine(130,135,115,160); //Nose Left Line
g.drawLine(130,135,145,160); // Nose Right Line
g.drawLine(115,160,145,160); // Nose Base

g.drawString(" ------------- Created By Lionel.",10,350);
}
}

4 comments:

  1. madarchod saale chutiye kutte ke chutad randi ke beej tera code kaam nhi kr rha he

    ReplyDelete
  2. saale kutte ke bacche suar ki aulad bund ke gude haramjaade randi ki chudi hui chut ke baal

    ReplyDelete
  3. asshole your code is not working son of a bitch motherfucker f**k yourself bitch asshole MUKESH CHUTIYA HE.....

    ReplyDelete