Jango
Gesperrter Benutzer
Code:
import java.applet.*;
import java.awt.*;
public class Osterhase extends Applet {
public void paint (Graphics stift) {
Color FellFarbe=new Color(125, 50, 75); //FELLFARBE
stift.setColor(FellFarbe);
stift.fillOval(50, 50, 50, 50); //Osterhasenkopf
stift.fillOval(50, 90, 80, 100); // Körper
stift.fillOval(80, 20, 20, 80); // Ohr
stift.fillOval(50,180,50,20); //Fuß
Color Schwarz=new Color(0,0,1); //SCHWARZ
stift.setColor(Schwarz);
stift.fillOval(55, 55, 6, 6); //Auge
stift.fillOval(80, 20, 16,61); //Ohrfüllung ->Schatten
stift.drawLine(50,60,50,40);
Color Füllung=new Color(200,210,205); //FÜLLFARBE
stift.setColor(Füllung);
stift.fillOval(80, 20, 15,60); // Ohr Füllung
stift.fillOval(120,150,20,15); //Schwänzchen
stift.fillOval(55, 55, 5, 5); //Auge 2
Color FellFarbe2=new Color(150, 55, 78);
stift.setColor(FellFarbe2);
stift.fillOval(70, 95, 20, 65); //Arm
Color green=new Color(100,255,100); //GRÜN
stift.setColor(green);
stift.fillRect(10,200,200,20); //Wiese
}
public void init() { //Hintergrund
Color blue=new Color(200,255,255);
setBackground(blue);
}
so is besser