Listing program objek processing berikut amat sangat sederhana. Saya membuat sebuah pemandangan rumah di malam hari beserta taburan bintang, rumput, jalan setapak, dan boneka penunggu. How to create scenery objects using processing software. Beginilah jadinya:
Hehehehe macam anak-anak kan? Sudahlah tak apa. Saya pun tidak terlalu memikirkan itu :P
Berikut ini adalah listing program gambar di samping:
size(500,493);
background(0);
smooth();
strokeWeight(7);
stroke(#F74B4E);
fill(#A343B7);
triangle(30,150,70,90,110,150);
rect(30,150,80,120);
quad(110,150,70,90, 230,90,270,150);
rect(110,150,160,120);
strokeWeight(5);
line(30,220,60,220);
line(60,220,60,270);
line(30,230,60,230);
ellipse(45,250,10,10);
stroke(#59D6BE); line(145,274,375,500);
stroke(#AA1A7F); line(170,274,400,500);
stroke(#691AAA); line(195,274,425,500);
stroke(#A5695A); line(220,274,450,500);
stroke(#1AAA1F); line(245,274,475,500);
stroke(#2E83DB); line(270,272,500,500);
stroke(#964DE0); line(295,272,525,500);
stroke(#D6E04D); line(320,272,550,500);
stroke(#E04D74); line(345,272,575,500);
stroke(#4D61E0); line(370,272,600,500);
fill(#43F50F);
stroke(#FCFC4F);
arc(2,270,50,50, (180*PI)/180,(0*PI)/180);
arc(295,270,50,50, (180*PI)/180,(0*PI)/180);
arc(355,270,70,70, (180*PI)/180,(0*PI)/180);
arc(415,270,50,50, (180*PI)/180,(0*PI)/180);
arc(480,270,80,80, (180*PI)/180,(0*PI)/180);
fill(#D0D163);
stroke(#C13185);
ellipse(100,375,50,50);
arc(100,360,20,20, (0*PI)/180,(180*PI)/180);
arc(100,380,20,20, (0*PI)/180,(180*PI)/180);
fill(#A5A52D);
ellipse(90,368,10,10);
ellipse(110,368,10,10);
fill(#FC4F63);
ellipse(68,360,15,40);
ellipse(132,360,15,40);
ellipse(120,481,20,15);
ellipse(85,481,20,15);
stroke(#D62D4C);fill(#B9B92B);
arc(80,410,40,40, (90*PI)/180,(270*PI)/180);
arc(80,450,50,50, (90*PI)/180,(270*PI)/180);
arc(120,410,40,40, (270*PI)/180,(90*PI)/180);
arc(120,450,50,50, (270*PI)/180,(90*PI)/180);
noStroke();
rect(80,399,41,75);
fill(255);
ellipse(15,20,4,3);
ellipse(35,40,4,5);
ellipse(100,18,4,3);
ellipse(67,35,4,3);
ellipse(48,29,4,3);
ellipse(120,35,4,5);
ellipse(140,60,4,4);
ellipse(170,40,4,5);
ellipse(210,30,4,3);
ellipse(230,50,3,5);
ellipse(258,37,4,3);
ellipse(279,20,4,5);
ellipse(290,60,4,4);
ellipse(370,40,4,3);
ellipse(410,30,4,5);
ellipse(430,50,4,3);
ellipse(460,40,4,3);
ellipse(480,20,4,3);
noFill();
stroke(#D9F50F);
triangle(325,70,350,20,375,70);
triangle(325,40,350,90,375,40);
Untuk menggambar objek robot dengan processing, klik saja link berikut: Membuat Robot
Untuk program animasi dengan processing, klik saja link berikut: Animasi Processing 😊
bikin pemandangan pantai melalui processing kyk mana
BalasHapus