All pastes #920533 Raw Edit

Something

public text v1 · immutable
#920533 ·published 2008-02-27 14:10 UTC
rendered paste body
import java.awt.*;
import hsa.Console;

public class TobesenttoSayed2
{
    static Console c;           // The output console

    public static void main (String[] args)
    {
        c = new Console ();



        Color DBrown = new Color (140, 86, 6);   //Code for dark brown colour
        Color LBrown = new Color (191, 104, 17); //Code for light brown colour
        Color TestBrown = new Color (182, 134, 9);
        Color DRed = new Color (143, 33, 7);     //Code for dark red colour
        Color LRed = new Color (195, 41, 6);     //Code for light red colour
        // Color LBlue = new Color (147, 232, 235); //Code for light blue colour
        Color LBlue = new Color (220, 250, 250); //Code for lighter blue colour
        Color DBlue = new Color (47, 227, 227);  //Code for dark blue
        Color Grey = new Color (153, 153, 153); //Code for grey colour

        Color Green = new Color (93, 198, 91);
        //    Color DYellow = new Color (214, 176, 21); //Code for dark yellow

        int faceColor, eyeShape, eyeColor, noseShape, noseColor;
        String Change, faceChange, eyeChange, nosechange;


        c.clear ();



        //Smooth Hair
        c.setColor (Color.black);
        for (int x = 80 ; x <= 80 ; x += 1)
            for (int y = 80 ; y <= 150 ; y += 1)


                // EARS
                c.setColor (TestBrown);
        c.fillOval (50, 220, 100, 150); // Left big ear

        c.setColor (Color.black);
        c.fillOval (75, 260, 60, 70); // left small ear

        c.setColor (TestBrown);
        c.fillOval (450, 220, 100, 150); // right big ear

        c.setColor (Color.black);
        c.fillOval (465, 260, 60, 70); // right small ear



        //FAce
        c.setColor (TestBrown);
        c.fillOval (100, 100, 400, 400);

        //Left Eye
        c.setColor (LBlue);              //change colour to light blue
        c.fillOval (175, 205, 100, 60);  //draw the left eye
        c.setColor (Green);        //change colour to black
        c.fillOval (205, 215, 40, 40);   //Draw the left eye balls
        c.setColor (Color.white);        //change colour to white
        c.fillOval (217, 229, 15, 15);   //smallest circle in the eye

        //Right Eye
        c.setColor (LBlue);              //change colour to light blue
        c.fillOval (320, 205, 100, 60);  //draw the right eye
        c.setColor (Green);        //change colour to black
        c.fillOval (350, 215, 40, 40);   //draw the right eye balls
        c.setColor (Color.white);        //change colour to white
        c.fillOval (362, 229, 15, 15);   //draw the circle in the eye


        c.setColor (Color.black);            //change colour to black
        for (int x = 165 ; x <= 165 ; x += 1) //fill left eyebrow
            for (int y = 150 ; y <= 160 ; y += 1) //fill left eyebrow
                c.drawArc (x, y, 120, 130, 40, 100); //draw left eyebrow
        for (int x = 310 ; x <= 310 ; x += 1) //fill right eyebrow
            for (int y = 150 ; y <= 160 ; y += 1) //fill right eyebrow
                c.drawArc (x, y, 120, 130, 40, 100); //draw right eyebrow

        for (int x = 165 ; x <= 165 ; x += 1) //fill left eyebrow
            for (int y = 140 ; y <= 160 ; y += 1) //fill left eyebrow
                c.drawArc (x, y, 120, 130, 40, 100); //draw left eyebrow
        for (int x = 310 ; x <= 310 ; x += 1) //fill right eyebrow
            for (int y = 140 ; y <= 160 ; y += 1) //fill right eyebrow
                c.drawArc (x, y, 120, 130, 40, 100); //draw right eyebrow


        //Mouth
        c.setColor (LBrown);           // lower lip
        c.fillOval (190, 350, 220, 100);

        c.setColor (Color.white);        //change colour to white
        c.fillOval (190, 350, 220, 80);  //draw first part of mouth

        c.setColor (LBrown);              //change colour to brown
        c.fillOval (190, 350, 220, 50);  //draw second part of mouth


        c.setColor (TestBrown);
        c.fillOval (190, 330, 230, 50); // upper lip




        // ORIGINAL TAKEN
        //Draw Teeth (horizontal lines)
        c.setColor (Color.black);
        c.drawLine (200, 385, 195, 400);
        c.drawLine (220, 391, 215, 415);
        c.drawLine (240, 395, 235, 422);
        c.drawLine (260, 397, 255, 426);
        c.drawLine (280, 398, 275, 429);
        c.drawLine (300, 400, 300, 430); // center line
        c.drawLine (320, 398, 325, 428);
        c.drawLine (340, 397, 345, 426);
        c.drawLine (360, 395, 365, 422);
        c.drawLine (380, 393, 385, 415);
        c.drawLine (400, 388, 405, 400);
        // Teeth (vertical lines)
        c.drawLine (190, 387, 196, 392);
        c.drawLine (196, 392, 215, 403);
        c.drawLine (215, 403, 235, 409);
        c.drawLine (235, 409, 255, 412);
        c.drawLine (255, 412, 275, 414); // center line
        c.drawLine (275, 414, 298, 413); // center line
        c.drawLine (298, 414, 321, 413);
        c.drawLine (321, 413, 341, 411);
        c.drawLine (341, 411, 361, 408);
        c.drawLine (361, 408, 381, 403);
        c.drawLine (381, 403, 402, 395);
        c.drawLine (402, 395, 409, 387);

        //nose
        c.setColor (Color.yellow);       //change colour to grey
        c.fillOval (270, 300, 50, 50);   //draw the nose

    }
}