วันอังคารที่ 26 สิงหาคม พ.ศ. 2557

Star


void setup() {
  size(400, 300);
  int background_color_red=10,
      background_color_green=50,
      background_color_blue=100;
  background(background_color_red, background_color_green, background_color_blue);
  int location_X=x, location_Y=y;
  int x=50, y=50;
  int color_red=200, color_green=200, color_blue=0;
  strokeWeight(2);
  stroke(color_red, color_green, color_blue);
  fill(200, 200, 0);
  beginShape();
  vertex(47+x, 0+y);
  vertex(61+x, 30+y);
  vertex(94+x, 35+y);
  vertex(70+x, 57+y);
  vertex(76+x, 90+y);
  vertex(47+x, 75+y);
  vertex(18+x, 90+y);
  vertex(24+x, 57+y);
  vertex(0+x, 35+y);
  vertex(33+x, 30+y);
  endShape(CLOSE);
}

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

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