Muhammad Ripal - Praktikum 2
Muhammad Ripal - Praktikum 2
Muhammad Ripal - Praktikum 2
NIM : 1804411103
KELAS : 7 GAB 2 MULTIMEDIA
MATA KULIAH : GRAFIKA KOMPUTER
LAPORAN PRAKTIKUM 2
Program Hasil Program
TUGAS
1. Buatlah sebuah objek lingkaran
//Lingkaran 2
stroke(0,0,0);
fill(255,255,255);
ellipse(340, 165, 80, 80);
//Lingkaran 3
stroke(0,0,0);
fill(255,255,255);
ellipse(300, 235, 80, 80);
}
2. void setup (){
size (600, 400);
background (255, 255, 255);
}
//badan
stroke(0,0,255);
fill(0,0,255);
rect(70, 75, 130, 130);
//tangan kanan
stroke(0,0,255);
fill(0,0,255);
rect(25, 75, 40, 90);
//tangan kiri
stroke(0,0,255);
fill(0,0,255);
rect(205, 75, 40, 90);
//kaki kanan
stroke(0,0,255);
fill(0,0,255);
rect(90, 210, 40, 150);
//kaki kiri
stroke(0,0,255);
fill(0,0,255);
rect(140, 210, 40, 150);
//mata kanan
stroke(200,200,255);
fill(200,200,255);
ellipse(120, 30, 20, 20);
//Mata Kiri
stroke(200,200,255);
fill(200,200,255);
ellipse(150, 30, 20, 20);
//Lingkaran 1
stroke(0,0,0);
fill(255,255,255);
ellipse(400, 90, 80, 80);
//Lingkaran 2
stroke(0,0,0);
fill(255,255,255);
ellipse(480, 90, 80, 80);
//Lingkaran 3
stroke(0,0,0);
fill(255,255,255);
ellipse(440, 160, 80, 80);
}