Advertisement
virtualideaz

Marill.java

Apr 4th, 2015
224
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.93 KB | None | 0 0
  1. import java.applet.Applet;
  2. import java.awt.*;
  3. import java.awt.Color;
  4.  
  5. public class MarillPokemon extends Applet {
  6.    
  7. //marill drawing using Java Applet
  8.  
  9.     public void paint(Graphics g) {
  10.         g.drawRect(10,10,800,600);
  11.        
  12.         Color customColor1 = new Color(30,181,238);
  13.         Color customColor2 = new Color(213,13,28);
  14.         Color customColor3 = new Color(250,201,241);
  15.        
  16.         //left ear
  17.         //lining
  18.             g.setColor(Color.BLACK);
  19.             g.drawArc(600,130,125,130,130,360);
  20.             g.drawArc(600,140,125,130,130,360);
  21.         //ear color
  22.             g.setColor(customColor1);
  23.             g.fillOval(600,120,125,130);
  24.             g.setColor(customColor2);
  25.             g.fillOval(600,140,125,130);
  26.             g.setColor(customColor1);
  27.             g.fillOval(640,300,80,40);
  28.         //body and right feet
  29.             g.setColor(customColor1);
  30.             g.fillOval(400,410,30,70);
  31.             g.fillOval(600,385,90,30);
  32.             g.setColor(Color.BLACK);
  33.             g.drawOval(400,410,30,70);
  34.             g.setColor(customColor1);
  35.             g.fillOval(350,150,320,320);
  36.             g.setColor(Color.WHITE);
  37.             g.fillOval(430,350,200,130);
  38.             g.setColor(Color.BLACK);
  39.             g.drawOval(350,150,320,320);
  40.         //arms right
  41.             g.setColor(Color.BLACK);
  42.             g.drawOval(400,300,30,70);
  43.             g.setColor(customColor1);
  44.             g.fillOval(400,300,30,70);
  45.         //lips
  46.             g.setColor(Color.BLACK);
  47.             g.drawArc(539,220,80,100,220,100);
  48.             g.setColor(customColor3);
  49.             g.fillArc(555,285,50,50,180,180);
  50.         //right ear
  51.             g.setColor(customColor1);
  52.             g.fillOval(320,120,150,150);
  53.             g.setColor(customColor2);
  54.             g.fillOval(340,140,125,130);
  55.         //ear lining
  56.             g.setColor(Color.BLACK);
  57.             g.drawArc(320,120,150,150,150,360);
  58.             g.drawArc(340,140,125,130,130,360);
  59.         //eyes
  60.             g.setColor(Color.BLACK);
  61.             g.fillOval(500,250,30,40);
  62.             g.fillOval(620,250,30,40);
  63.         //eye glare
  64.             g.setColor(Color.WHITE);
  65.             g.fillOval(510,250,20,20);
  66.             g.fillOval(630,250,20,20);
  67.         //tail
  68.             g.setColor(customColor1);
  69.             g.fillOval(100,100,150,150);
  70.             g.setColor(Color.BLACK);
  71.             g.drawOval(100,100,150,150);
  72.     }
  73. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement