2013年5月22日 星期三

440000431, 練習1






void setup() {
noStroke();
color c = color(0, 126, 255, 102);
fill(c);
rect(15, 15, 35, 70);
float value = alpha(c);
fill(value);
rect(50, 15, 35, 70);
for (int i = 0; i < 100; i++) {
  for (int j = 0; j < 100; j++) {
    stroke(i, j, 0);
    point(i, j);
  }
}
  size(600, 600);
}

void draw() {
  translate(40, 40);
  for (int i = 0 ; i < 50 ; i++)
  {
    for (int j = 0 ; j < 50 ; j++)
    {
      quad(50, 20, 10,25,55,10,30,40);
      point( 10, 10);
      line(i*10, j*10, 10, 10);
      rect(300, 210, 255, 155, 305, 406, 122, 168);
      rect(30, 20, 55, 55, 5, 40, 12, 167);
      triangle(130, 475, 158, 20, 86, 75);
      ellipse(300, 480, 100, 100);
      noSmooth();
      ellipse(170, 48, 100, 100);
      arc(50, 55, 50, 50, 0, HALF_PI);
      arc(50, 55, 60, 60, HALF_PI, PI);
      arc(50, 55, 70, 70, PI, PI+QUARTER_PI);
      arc(50, 55, 80, 80, PI+QUARTER_PI, TWO_PI);
      beginShape();
      vertex(30, 20);
      bezierVertex(280, 120, 580, 75, 130, 75);
      bezierVertex(250, 80, 460, 325, 130, 20);
      endShape();

    }
  }
}
void mousePressed() {
  saveFrame("e.png");
}

夕陽下的光輝

神秘地帶
行星
覆蓋
陰影







沒有留言:

張貼留言