Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.applet.Applet;
- import java.awt.*;
- import java.awt.Color;
- public class MarillPokemon extends Applet {
- //marill drawing using Java Applet
- public void paint(Graphics g) {
- g.drawRect(10,10,800,600);
- Color customColor1 = new Color(30,181,238);
- Color customColor2 = new Color(213,13,28);
- Color customColor3 = new Color(250,201,241);
- //left ear
- //lining
- g.setColor(Color.BLACK);
- g.drawArc(600,130,125,130,130,360);
- g.drawArc(600,140,125,130,130,360);
- //ear color
- g.setColor(customColor1);
- g.fillOval(600,120,125,130);
- g.setColor(customColor2);
- g.fillOval(600,140,125,130);
- g.setColor(customColor1);
- g.fillOval(640,300,80,40);
- //body and right feet
- g.setColor(customColor1);
- g.fillOval(400,410,30,70);
- g.fillOval(600,385,90,30);
- g.setColor(Color.BLACK);
- g.drawOval(400,410,30,70);
- g.setColor(customColor1);
- g.fillOval(350,150,320,320);
- g.setColor(Color.WHITE);
- g.fillOval(430,350,200,130);
- g.setColor(Color.BLACK);
- g.drawOval(350,150,320,320);
- //arms right
- g.setColor(Color.BLACK);
- g.drawOval(400,300,30,70);
- g.setColor(customColor1);
- g.fillOval(400,300,30,70);
- //lips
- g.setColor(Color.BLACK);
- g.drawArc(539,220,80,100,220,100);
- g.setColor(customColor3);
- g.fillArc(555,285,50,50,180,180);
- //right ear
- g.setColor(customColor1);
- g.fillOval(320,120,150,150);
- g.setColor(customColor2);
- g.fillOval(340,140,125,130);
- //ear lining
- g.setColor(Color.BLACK);
- g.drawArc(320,120,150,150,150,360);
- g.drawArc(340,140,125,130,130,360);
- //eyes
- g.setColor(Color.BLACK);
- g.fillOval(500,250,30,40);
- g.fillOval(620,250,30,40);
- //eye glare
- g.setColor(Color.WHITE);
- g.fillOval(510,250,20,20);
- g.fillOval(630,250,20,20);
- //tail
- g.setColor(customColor1);
- g.fillOval(100,100,150,150);
- g.setColor(Color.BLACK);
- g.drawOval(100,100,150,150);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement