You are on page 1of 4

TUGAS QUIZ

Nama : Syhanda Azahra


NPM : 22430128
Kelas : A
Prodi : Ilmu Komputer
Fakultas Ilmu Komputer

1. Boneka

Script Hasil
size (500,500);
background(#985D36);

//telinga
fill(#FFBCEE);
stroke(#EDE5B6);
ellipse(160,80,50,50);
ellipse(340,80,50,50);
fill(#F2EED7);
stroke(#F2EED7);
ellipse(160,80,30,30);
ellipse(340,80,30,30);

//muka
fill(#FFBCEE);
stroke(#EDE5B6);
ellipse(250,110,180,150);

//mata
stroke(#030303);
fill(#030303);
ellipse(220,90,20, 20);
fill(#030303);
ellipse(280,90,20,20);

//hidung
fill(#BC379B);
stroke(#644502);
ellipse(250,110,50,50);
fill(0);
stroke(0);
ellipse(250,100,20,20);

//kaki
stroke(#EDE5B6);
fill(#FFBCEE);
ellipse(170,400,80,140);
stroke(#EDE5B6);
fill(#FFBCEE);
ellipse(320,400,80, 140);

//tangan
stroke(#EDE5B6);
fill(#FFBCEE);
ellipse(130,220,140,80);
stroke(#EDE5B6);
fill(#FFBCEE);
ellipse(370,220,140,80);
fill(#F2EED7);
stroke(#F2EED7);
ellipse(100,220,80,80);
fill(#F2EED7);
stroke(#F2EED7);
ellipse(400,220,80,80);

//badan
fill(#FFBCEE);
stroke(#EDE5B6);
ellipse(250,300,230,270);
fill(#F2EED7);
stroke(#F2EED7);
ellipse(250,310,170,240);

//garis
strokeWeight(2);
fill(#0D020A);
stroke(0);
line(250, 105, 250, 130);

2. Objek Menggunakan Ellipse


Script Hasil
size (600, 650);
background(#E0FFFD);

//Badan
fill (#FFD8E4);
strokeWeight(7);
strokeJoin (ROUND);
arc (300, 300, 300, 300, radians (180),
radians (360));

//kepala
line (150,300,150,450);

//gariskiri
line (250, 450, 350, 450);

//gariskanan
arc (200,450, 100, 100, radians (0),
radians(180));

//kaki kiri
arc (400,450, 100, 100, radians (0),
radians (180));

//kaki kanan
line (450,300,450,450);

//penyambung kaki

//Mata
strokeWeight (6);
strokeJoin (BEVEL);
fill (#DBDBDB);
ellipse (320,235,200, 120);

//Mata
strokeWeight (6);
strokeJoin (BEVEL);
fill (#DBDBDB);
ellipse (320,235,200, 120);

//Atasan kepala
strokeWeight (20);
stroke (#FFFFFF);
fill (#ED69DE);
ellipse (300,90,200,70);

//Tas
strokeWeight (80);
stroke (#DFD9E0);
strokeJoin (BEVEL);
line (109, 280, 109, 400);

//dalam badan
fill(#FFD8E4);
noStroke();
rect (154, 299, 293, 152);

You might also like