Processing Animasi Rumah Keren Abis

Processing Animasi Rumah Keren Abis-Berikut ini Piknikglobal akan memberikan source kode tentang souce kode software bernama processing yang mana ini digunakan pada mata kuliah processing. btw maaf ini out off topic karena kebuntuan dan kesakitan yang di rasa, btw banyak juga yang request sama saya koding koding tentang processing jadi ya sekian aja. biarin deh gado gado. blog blog saya, kok kamu yang rese... yo wes dari pada gak kelar yuk comot langsung. gasss....

Processing Animasi Rumah Keren Abis
Processing Animasi Rumah Keren Abis

Source Code :


1:  size(300, 300);  
2:   background(255);  
3:   // segitiga atas  
4:  beginShape(TRIANGLES);  
5:  vertex(40, 80);  
6:  vertex(100, 30);  
7:  vertex(160, 80);  
8:  endShape();   
9:  //kotak kanan  
10:  fill(0,0,255);  
11:  beginShape();  
12:  vertex(50, 80);  
13:  vertex(150, 80);  
14:  vertex(150, 140);  
15:  vertex(50, 140);  
16:  endShape(CLOSE);   
17:  //  
18:  fill(0,255,0);  
19:  beginShape();  
20:  vertex(125, 50);  
21:  vertex(170, 50);  
22:  vertex(205, 80);  
23:  vertex(160, 80);  
24:  endShape(CLOSE);  
25:  //  
26:  fill(255,0,0);  
27:  beginShape();  
28:  vertex(150, 80);  
29:  vertex(205, 80);  
30:  vertex(205, 140);  
31:  vertex(150, 140);  
32:  endShape(CLOSE);  
33:  //kaca  
34:  fill(0,255,255);  
35:  beginShape();  
36:  vertex(110, 95);  
37:  vertex(140, 95);  
38:  vertex(140, 125);  
39:  vertex(110, 125);  
40:  endShape(CLOSE);  
41:  line(125,95,125,125);  
42:  line(110,110,140,110);  
43:  //pintu  
44:  beginShape();  
45:  vertex(60, 132);  
46:  vertex(100, 132);  
47:  vertex(100, 147);  
48:  vertex(60, 147);  
49:  endShape(CLOSE);  
50:  line(63,100,63,132);  
51:  line(97,100,97,132);  
52:  line(80,80,55,100);  
53:  line(80,80,105,100);  
54:  //pintu tengah  
55:  line(68,104,68,132);  
56:  line(92,104,92,132);  
57:  fill(0,255,0);  
58:  arc(80,104,24,24,(-180*PI)/180,(0*PI)/180);  
59:  //kaca kanan  
60:   size(300, 300);  
61:   background(255);  
62:   // segitiga atas  
63:  beginShape(TRIANGLES);  
64:  vertex(40, 80);  
65:  vertex(100, 30);  
66:  vertex(160, 80);  
67:  endShape();   
68:  //kotak kanan  
69:  fill(0,0,255);  
70:  beginShape();  
71:  vertex(50, 80);  
72:  vertex(150, 80);  
73:  vertex(150, 140);  
74:  vertex(50, 140);  
75:  endShape(CLOSE);   
76:  //  
77:  fill(0,255,0);  
78:  beginShape();  
79:  vertex(125, 50);  
80:  vertex(170, 50);  
81:  vertex(205, 80);  
82:  vertex(160, 80);  
83:  endShape(CLOSE);  
84:  //  
85:  fill(255,0,0);  
86:  beginShape();  
87:  vertex(150, 80);  
88:  vertex(205, 80);  
89:  vertex(205, 140);  
90:  vertex(150, 140);  
91:  endShape(CLOSE);  
92:  //kaca  
93:  fill(0,255,255);  
94:  beginShape();  
95:  vertex(110, 95);  
96:  vertex(140, 95);  
97:  vertex(140, 125);  
98:  vertex(110, 125);  
99:  endShape(CLOSE);  
100:  line(125,95,125,125);  
101:  line(110,110,140,110);  
102:  //pintu  
103:  beginShape();  
104:  vertex(60, 132);  
105:  vertex(100, 132);  
106:  vertex(100, 147);  
107:  vertex(60, 147);  
108:  endShape(CLOSE);  
109:  line(63,100,63,132);  
110:  line(97,100,97,132);  
111:  line(80,80,55,100);  
112:  line(80,80,105,100);  
113:  //pintu tengah  
114:  line(68,104,68,132);  
115:  line(92,104,92,132);  
116:  fill(0,255,0);  
117:  arc(80,104,24,24,(-180*PI)/180,(0*PI)/180);  
118:  //kaca kanan  
119:  fill(0,255,255);  
120:  beginShape();  
121:  vertex(165, 90);  
122:  vertex(195, 90);  
123:  vertex(195, 130);  
124:  vertex(165, 130);  
125:  endShape(CLOSE);  
126:  line(180,90,180,130);  
127:  line(165,110,195,110);  
128:  //cerobong asap  
129:  fill(132,67,4);  
130:  beginShape();  
131:  vertex(125, 27);  
132:  vertex(138, 27);  
133:  vertex(138, 50);  
134:  vertex(125, 50);  
135:  endShape(CLOSE);  
136:  //asap  
137:  fill(0,255,255);  
138:  strokeWeight(3);  
139:  noFill();  
140:  arc(143,27,24,24,(-180*PI)/180,(-30*PI)/180);  
141:  arc(166,19,24,24,(30*PI)/180,(160*PI)/180);  
142:  arc(189,28,24,24,(-160*PI)/180,(-80*PI)/180);  
143:  //garis alas  
144:  line(63,136,97,136);  
145:  line(63,141,97,141);  
146:  line(63,146,97,146);  
147:  ellipse(85,115,4,4);  

1 Response to "Processing Animasi Rumah Keren Abis"

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel