You are on page 1of 4

QUIZ l PROCESSING

Laporan Ini Dibuat Untuk Memenuhi QUIZI l

Mata Kuliah:KOMPUTER GRAFIK

Dosen Pengampu:Dedi Irawan, S.Kom., M.T.I.

Di Susun Oleh :

Bayu prasetia 22430142

PRODI ILMU KOMPUTER

FAKULTAS ILMU KOMPUTER

UNIVERSITAS MUHAMMADIYAH METRO


2022/2023
KODINGAN HASILNYA
void setup(){
size (500,500);
PImage img =
loadImage("logo.jpg");
background(img);
smooth(5);
}
void draw(){

//lingkaran 1
strokeWeight(5);
stroke(#C60C1C);
fill(0);
ellipse(250,250,300,300);

//lingkaran 2

strokeWeight(5);
strokeJoin(#C60C1C);
noFill();
ellipse(250,250,260,260);

//garis kiri bawah


strokeWeight(30);
stroke(#C60C1C);
fill(0);
line(245,250,150,305);
strokeWeight(20);
stroke(0);
fill(0);
line(245,250,150,305);

//garis tengah atas


strokeWeight(30);
stroke(#C60C1C);
fill(0);
line(250,250,250,130);
strokeWeight(20);
stroke(0);
fill(0);
line(250,250,250,130);

//garis bawah kanan


strokeWeight(30);
stroke(#C60C1C);
fill(0);
line(245,250,355,305);
strokeWeight(20);
stroke(0);
fill(0);
line(245,250,355,305);

//garis tengah bawah


strokeWeight(30);
stroke(#C60C1C);
fill(0);
line(250,250,250,365);
strokeWeight(20);
stroke(0);
fill(0);
line(250,250,250,365);

strokeWeight(5);
stroke(#C60C1C);
fill(0);
ellipse(250,250,30,30);

strokeWeight(5);
stroke(255);
fill(0);
ellipse(250,250,5,5);

strokeWeight(5);
stroke(#C60C1C);
fill(0);
ellipse(250,115,30,30);

strokeWeight(5);
stroke(255);
fill(255);
ellipse(250,115,5,5);

strokeWeight(5);
stroke(#C60C1C);
fill(0);
ellipse(249,385,30,30);

strokeWeight(5);
stroke(255);
fill(255);
ellipse(250,385,5,5);
strokeWeight(5);
stroke(#C60C1C);
fill(0);
ellipse(373,315,30,30);

strokeWeight(5);
stroke(255);
fill(255);
ellipse(373,315,5,5);

strokeWeight(4);
stroke(#C60C1C);
fill(0);
ellipse(135,315,30,30);

strokeWeight(4);
stroke(255);
fill(255);
ellipse(135,315,5,5);

You might also like