int x=100;
int y=100;
int z=100;
void setup(){
size(700,700);
}
void draw(){
background(255);
PFont font;
font=loadFont("Stencil-48.vlw");
textFont(font);
color a=color(145,180,0);
fill(a);
noStroke();
triangle(x+40,x-200,z-100,x+20,y+220,z);
color b=color(200, 180, 0);
fill(b);
noStroke();
triangle(x+80,x-150,z-100,x+60,y+220,z);
color c=color(255,204,0);
fill(c);
noStroke();
triangle(x+120,x-100,z-100,x+100,y+220,z);
x=x+5;//add 1 to x
if(x>500){//if x is greater than 100
x=10;
}
fill(255);
textSize(40);
text("Spatial",230,300);
text("Interaction",230,340);
text("Design",230,380);
}
沒有留言:
張貼留言