วันเสาร์ที่ 21 กันยายน พ.ศ. 2556

XO

float n = 0.33333;
int count = 0;
int r =  140;
float[][] pos = {
  {
    83.3333, 250, 353.333
  }
  , {
    83.3333, 83.3333, 20
  }
};
void setup() {
  size(500, 500);
  background(0, 255, 0);
  strokeWeight(10);
  while (count<=1) {
    line(width*n, 0, width*n, height);
    line(0, height*n, width, height*n);
    n = n + 0.33333;
    count++;
  }
  OX();
}


void OX() {
  int i = 0;
  textSize(250);
  while (i<2) {
    ellipse(pos[0][i], pos[1][i], r, r);
    i++;
  }
  text('x', 345, 150);
}

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

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