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

Lab04 : Balloons

void setup() {
  size(500, 500);
}

void draw() {
  background(51);
  strokeWeight(5);
  stroke(#FF760D);
  int x=40;
  int y=mouseY;
  if (y<40) {
    y=40; 
    fill(#E0A171);
  } else if (y>460) {
    y=460;
    fill(#365189);
  } else {
    fill(255);
  }

  draw_balloon(x, y);
}

void draw_balloon(int x, int y) {
  int radius=80;
  int i=0;
  while (i<6) {
    line(x, y, x, y+120);
    ellipse(x, y, radius, radius);
    x+=90;
    i++;
  }
}


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

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

commit เพิ่มเติม : เพื่ม userstory, bookmark

>>  add userstory ทำการเพิ่ม userstory ใน functional tests >>  add bookmark for user เพิ่มระบบ Bookmark โดยการสร้าง model ขึ...