วันอาทิตย์ที่ 22 กันยายน พ.ศ. 2556

For Loop



void setup() {
  size(300, 100);
  background (153, 0, 204);
  int x=50;
  for (int i=0;i<5;i++) {
    noStroke();
    fill (255, 255, 0);
    ellipse(x, 50, 50, 50);
    x=x+50;
  }
}

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

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