Hallo Sobat IT. kalo ini akan membahas membuat Robot pada Software Processing 3
Mungkin sobat bingung cara membuat Objek Robot pada Processing itu seperti apa? Yuk simak Bareng bareng scripnya dibawah ini .
itu adalah hasil robot yang telah dibuat penasaran kan scripnya apa saja? yuu langsung cek dibawah.
size (450,550);
smooth();
background (#40E0D0);
//wajah
fill(255);
ellipse (155, 180, 50, 50);
ellipse (304, 180, 50, 50);
fill(#F9FA00);
ellipse(230, 180, 170, 110);
//mata
fill(220);
ellipse(235, 160, 60, 50);
fill(0);
ellipse(230, 150, 34, 28);
//mulut
fill(#FFFCFD);
ellipse(235, 210, 40, 10);
//gigi
line(170, 120, 170, 110);
line(175, 122, 175, 107);
line(180, 124, 180, 107);
line(185, 124, 185, 106);
line(190, 124, 190, 106);
line(195, 123, 195, 107);
line(200, 120, 200, 110);
//Leher
fill(#F9FA00);
rect(200,235,50,111);
//Tangan Kiri
stroke(0,0,50);
fill(#FFD700);
rect(81,300,25,100);
fill(#FFD700);
ellipse(125,295,45,45);
ellipse(95,295,35,35);
//Capit Kiri
stroke(0,0,50);
ellipse(94,395,35,35);
fill(#FFFACD);
rect(87,403,4,8);
rect(90,403,4,8);
rect(93,403,4,8);
rect(96,403,4,8);
//Tangan Kanan
stroke(0,0,50);
fill(#FFD700);
rect(343,300,25,100);
fill(#FFD700);
ellipse(325,295,45,45);
ellipse(355,295,35,35);
//Capit Kanan
stroke(0,0,50);
ellipse(357,395,35,35);
fill(#A9A9A9);
rect(350,403,4,8);
rect(353,403,4,8);
rect(356,403,4,8);
rect(359,403,4,8);
//Badan
stroke(0,0,50);
fill(#800000);
rect(135,265,180,150);
//Kotak Badan
noStroke();
fill(#FFF8DC);
strokeJoin(BEVEL);
rect(182, 288,87, 80);
//Bulet Kiri
fill(#FFD700);
ellipse(157,385,30,30);
//Bulet Kanan
fill(#FFD700);
ellipse(293,385,30,30);
//Kotak Tengah Atas
noStroke();
fill(#FFFFFF);
rect(180,375,90,10);
//Kotak Tengah Bawah
noStroke();
fill(#800000);
rect(180,395,90,10);
//Kaki Kiri
stroke(0,0,50);
fill(#800000);
rect(155,415,30,10);
rect(158,425,25,9);
rect(160,434,20,8);
fill(#800000);
rect(150,440,40,70);
//Sepatu
stroke(0,0,50);
fill(#800000);
rect(157,510,25,35);
fill(#800000);
//Kaki Kanan
stroke(0,0,50);
fill(#800000);
rect(260,415,30,10);
rect(262,425,25,9);
rect(264,434,20,8);
fill(#800000);
rect(255,440,40,70);
//Sepatu
stroke(0,0,50);
fill(#800000);
rect(263,510,25,35);
fill(#800000);
Tidak ada komentar:
Posting Komentar