23 สิงหาคม 2558

Lab1 Capt(Resize,Move)







void setup(){
int X = -50;
int Y = -50;
int Width = 0;
int Height = 0;
size(600,600);
background(#0D0D0D);
noStroke();
fill(255);
textSize(550);
text("A", X+100, Y+500);// A font
fill(255);

//----- title -----//
textSize(30);
text("CAPTAIN AMERICA", X+162, Y+570);

//----- Shield -----//
fill(#EE0000);
ellipse(X+370,Y+300,Width+250,Height+250);
fill(255);
ellipse(X+370,Y+300,Width+210,Height+210);
fill(#EE0000);
ellipse(X+370,Y+300,Width+170,Height+170);
fill(#000080);
ellipse(X+370,Y+300,Width+130,Height+130);

//----- Star -----//
beginShape();
fill(255);
vertex(X+370,Y+243);
vertex(X+382.5 , Y+280.5);
vertex(X+420 , Y+280.5);
vertex(X+395 , Y+305.5);
vertex(X+407.5 , Y+343);
vertex(X+370 , Y+318);
vertex(X+332.5 , Y+343);
vertex(X+345 , Y+305.5);
vertex(X+320 , Y+280.5);
vertex(X+357.5 , Y+280.5);
endShape(CLOSE);

stroke(255);
strokeWeight(1);
line(0,300,600,300);
line(300,0,300,600);

}

ไม่มีความคิดเห็น:

แสดงความคิดเห็น