Sunday, 28 July 2013

Write a Applet for Drawing Human Face

import java.awt.*;
import java.applet.*;
public class face extends Applet
{
    public void paint(Graphics g)
    {
        g.drawOval(40, 40, 120, 150);
        g.drawOval(57, 75, 30, 20);
        g.drawOval(110, 75, 30, 20);
        g.fillOval(68, 81, 10, 10);
        g.fillOval(121, 81, 10, 10);
        g.drawOval(85, 100, 30, 30);
        g.fillArc(60, 125, 80, 40, 180, 180);
        g.drawOval(25, 92, 15, 30);
        g.drawOval(160, 92, 15, 30);
    }

}


Output




11 comments:

Unknown said...

The blog was absolutely fantastic, Lot of information is helpful in some or the other way. Keep updating the blog, looking forward for more content…. Great job, keep it up.
Code Huma

Unknown said...

How to run in cmt

Unknown said...

awsm

Unknown said...

Thanx

Gopika vk said...
This comment has been removed by the author.
Unknown said...

Tx

Unknown said...

Will I get 10 marks for this question?

Unknown said...

Thnks ..

Unknown said...

Show the algorithms

Anil Katte said...

Thank you

Unknown said...

thanks

Post a Comment

Followers