membuat bintang dan kubus dengan processing

membuat bintang dan kubus grafika komputer






size(400, 400);
background(247,250,204);
fill(220,9,180);
rect(100, 100, 200, 200);
                               
fill(235,242,151);
stroke(235,242,151);
ellipse(200, 200, 80, 80);
triangle(185, 165, 125, 140, 160, 200);
triangle(225, 175, 200, 115, 175, 175);
triangle(240, 200, 275, 140, 210, 165);
triangle(230, 230, 290, 205, 230, 185);
triangle(195, 235, 265, 265, 230, 205);
triangle(220, 235, 200, 285, 165, 225);
triangle(200, 235, 135, 265, 165, 210);
triangle(165, 185, 110, 205, 175, 230);





 

GAMBAR KUBUS:

size(400,400);
background(0,0,0);
stroke(100,200,290);
fill(90,0,0);
quad(110,100,150,110,150,150,110,140);
line(150,150,185,138);
stroke(232,70,197);
line(185,95,185,138);
line(150,110,184,95);
stroke(70,93,232);
line(140,130,185,139);
line(140,89,185,95);
line(110,140,140,130);
line(110,100,140,89);
line(140,90,140,130);
 




Post a Comment

0 Comments