int posY=50;
void setup(){
size(500,500);
frameRate(10);
}
void draw(){
draw_positive(posX,posY);
posY = (posY+5)%height;
}
void draw_positive(int posX,int posY){
background(255);
noStroke();
fill(#FF0000);
rect(posX,posY,100,100);
rect(posX-100,posY+100,300,100);
rect(posX,posY+200,100,100);
}
ไม่มีความคิดเห็น:
แสดงความคิดเห็น