Processing 2007/02/24 15:48

다양한 이미지

사용자 삽입 이미지



연습 삼아 김수정 선생님 것도 따라해봤습니다
// 이상 서울대생 최정욱님꺼임.


//paristo22_bezierVertex

void setup() {
  size(420, 594, P3D);
}
void draw() { 
  background(0xffffffff);
  translate(width/2, height/2, 100);
  Line();
}

float a, zoom=1.6;
void Line() {
  strokeWeight(.1);
  stroke(0, 0, 0, 30);
  if(mousePressed && zoom<1800) {
    zoom += (zoom+.1)/80;
  }
  else if(zoom>1.6) {
    zoom -= (zoom+.1)/80;
  }
  scale(zoom);

  for(a=0; a<360; a++) {
    beginShape(LINE_STRIP);
    vertex(90*cos((a)*PI/180), 40*sin((a*1.2)*PI/180));
    bezierVertex(100*cos((a+15)*PI/180), -60*sin((a+15)*PI/180),
   
    -20*sin((a+10)*PI/180)*cos((a*2+150)*PI/180),
    -30*sin((a+10)*PI/180)*cos((a*1.2+50)*PI/180),
   
    100*cos((a+180)*PI/180)*sin((a-40)*PI/180),
    100*sin((a+180)*PI/180)*sin((a*1.7+20)*PI/180));
    endShape();
  }
}



//paristo23_bezierVertex

void setup() {
  size(420, 594, P3D);
}
void draw() { 
  background(0xffffffff);
  translate(width/2, height/2, 100);
  Line();
}

float a, zoom=1.6;
void Line() {
  strokeWeight(.1);
  stroke(0, 0, 0, 30);
  if(mousePressed && zoom<1800) {
    zoom += (zoom+.1)/80;
  }
  else if(zoom>1.6) {
    zoom -= (zoom+.1)/80;
  }
  scale(zoom);

  for(a=0; a<360; a++) {
    beginShape(LINE_STRIP);
    vertex(100*cos((a)*PI/180), 100*sin((a)*PI/180));
    bezierVertex(100*cos((a+15)*PI/180), -60*sin((a+15)*PI/180),
   
    -20*sin((a+10)*PI/180)*cos((a*2+150)*PI/180),
    -30*sin((a+10)*PI/180)*cos((a+50)*PI/180),
   
    100*cos((a+180)*PI/180),
    100*sin((a+180)*PI/180));
    endShape();
  }
}



//paristo24_bezierVertex

void setup() {
  size(420, 594, P3D);
}
void draw() { 
  background(0xffffffff);
  translate(width/2, height/2, 100);
  Line();
}

float a, zoom=1.6;
void Line() {
  strokeWeight(.3);
  stroke(0, 0, 0, 90);
  if(mousePressed && zoom<1800) {
    zoom += (zoom+.1)/80;
  }
  else if(zoom>1.6) {
    zoom -= (zoom+.1)/80;
  }
  scale(zoom);

  for(a=0; a<360; a++) { 
    beginShape(LINE_STRIP);
    vertex(100*cos((a)*PI/180), 100*sin((a)*PI/180));
    bezierVertex(77*cos((a)*PI/180), 50*sin((a+6)*PI/180),   
    85*cos((a+20)*PI/180), 20*sin((a+16)*PI/180),
    80*cos((a+30)*PI/180), 3*sin((a+30)*PI/180));
    endShape();
    beginShape(LINE_LOOP);
    vertex(80*cos((a)*PI/180), 3*sin((a)*PI/180));
    vertex(0, 0);
    endShape();
  }
}



//paristo26_bezierVertex

void setup() {
  size(420, 594, P3D);
}
void draw() {
  background(0xffffffff);
  translate(width/2, height/2, 0);
  Line();
}

void Line() {
  strokeWeight(.1);
  stroke(0, 0, 0, 70);
  for(float a=0; a<360; a++) {
    beginShape(LINE_STRIP);
    vertex(200*cos(a*PI/180), 200*sin(a*PI/180));
    bezierVertex(160*sin((a+30)*PI/180), -20*sin((a-50)*PI/180),
    -140*cos((a-30)*PI/180), -140*cos((a)*PI/180),
    -200*cos((a+90)*PI/180), -200*sin((a-90)*PI/180));
    endShape();
  }
}



//paristo27_bezierVertex

void setup() {
  size(420, 594, P3D);
}
void draw() { 
  background(0xffffffff);
  translate(width/2, height/2+100, 0);
  Line();
}

void Line() {
  strokeWeight(.1);
  stroke(0, 0, 0, 70);
  for(float a=0; a<360; a++) {
    beginShape(LINE_STRIP);
    vertex(200*cos(a*PI/180), 90*sin(a*PI/180));
    bezierVertex(90*sin((a+30)*PI/180), 150*sin((a-50)*PI/180),
    140*cos((a-30)*PI/180), -440*sin((a)*PI/180)*sin((a)*PI/180),
    -200*cos((a-30)*PI/180), -90*sin((a-30)*PI/180));
    endShape();
  }
}



//paristo28_bezierVertex

void setup() {
  size(420, 594, P3D);
}
void draw() {
  background(0xffffffff);
  translate(width/2, height/2, 0);
  Line();
}

void Line() {
  strokeWeight(.1);
  stroke(0, 0, 0, 70);
  for(float a=0; a<360; a++) {
    beginShape(LINE_STRIP);
    vertex(200*cos((a)*PI/180), 200*sin((a)*PI/180));
    bezierVertex(-160*cos((a+30)*PI/180), -160*sin((a+30)*PI/180),
    -160*cos((a-30)*PI/180), -160*sin((a-30)*PI/180),
    200*cos((a+30)*PI/180), 200*sin((a+30)*PI/180));
    endShape();
  }
}



//paristo29_bezierVertex

void setup() {
  size(420, 594, P3D);
}
void draw() {
  background(0xffffffff);
  translate(width/2, height/2, 0);
  Line();
}

void Line() {
  strokeWeight(.1);
  stroke(0, 0, 0, 30);
  for(float a=0; a<360; a++) {
    beginShape(LINE_STRIP);
    vertex(200*cos((a)*PI/180), 200*sin((a)*PI/180));
    bezierVertex(
    160*cos((a*2)*PI/180), 160*sin((a*2+30)*PI/180),
    10*cos((a-60)*PI/180), 10*sin((a)*PI/180),
    200*cos((a)*PI/180), 200*sin((a)*PI/180));
    endShape();
  }
}



//paristo30_bezierVertex

void setup() {
  size(420, 594, P3D);
}
void draw() {
  background(0xffffffff);
  translate(width/2, height/2, 0);
  Line();
}

void Line() {
  strokeWeight(.1);
  stroke(0, 0, 0, 30);
  for(float a=0; a<360; a++) {
    beginShape(LINE_STRIP);
    vertex(200*cos((a)*PI/180), 200*sin((a)*PI/180));
    bezierVertex(
    -220*cos((a*30)*PI/180), -220*sin((a*30)*PI/180),
    -300*cos((a)*PI/180), -300*sin((a)*PI/180),
    70*cos((a)*PI/180), 70*sin((a)*PI/180));
    endShape();
  }
}



//paristo31_bezierVertex

void setup() {
  size(420, 594, P3D);
}
void draw() {
  background(0xffffffff);
  translate(width/2, height/2, 0);
  Line();
}

void Line() {
  strokeWeight(.1);
  stroke(0, 0, 0, 30);
  for(float a=0; a<360; a++) {
    beginShape(LINE_STRIP);
    vertex(200*cos((a)*PI/180), 200*sin((a)*PI/180));
    bezierVertex(
    -220*cos((a*30)*PI/180), -220*sin((a*30)*PI/180),
    -300*cos((a)*PI/180), -300*sin((a)*PI/180),
    70*cos((a)*PI/180), 70*sin((a)*PI/180));
    endShape();
  }
}



//paristo32_bezierVertex

void setup() {
  size(420, 594, P3D);
}
void draw() {
  background(0xffffffff);
  translate(width/2, height/2, 0);
  Line();
}

void Line() {
  strokeWeight(.1);
  stroke(0, 0, 0, 30);
  for(float a=0; a<360; a++) {
    beginShape(LINE_STRIP);
    vertex(200*cos((a)*PI/180), 200*sin((a)*PI/180));
    bezierVertex(
    150*cos((a*72)*PI/180), 150*sin((a*72)*PI/180),
    100*cos((a*72)*PI/180), 100*sin((a*72)*PI/180),
    -195*cos((a)*PI/180), -195*sin((a)*PI/180));
    endShape();
  }
}



//paristo33_bezierVertex

void setup() {
  size(420, 594, P3D);
}
void draw() {
  background(0xffffffff);
  translate(width/2, height/2, 0);
  Line();
}

void Line() {
  strokeWeight(.1);
  stroke(0, 0, 0, 30);
  for(float a=0; a<360; a++) {
    beginShape(LINE_STRIP);
    vertex(200*cos((a)*PI/180), 200*sin((a)*PI/180));
    ai.ai_bezierVertex(
    150*cos((a*180)*PI/180), 150*sin((a*180)*PI/180),
    100*cos((a*180)*PI/180), 100*sin((a*180)*PI/180),
    -300*cos((a)*PI/180), -300*sin((a)*PI/180));
    endShape();
  }
}



//paristo34_bezierVertex

void setup() {
  size(420, 594, P3D);
}
void draw() {
  background(0xffffffff);
  translate(width/2, height/2, 0);
  Line();
}

void Line() {
  strokeWeight(.1);
  stroke(0, 0, 0, 30);
  for(float a=0; a<360; a++) {
    beginShape(LINE_STRIP);
    vertex(200*cos((a)*PI/180), 200*sin((a)*PI/180));
    bezierVertex(
    150*cos((a*6)*PI/180), 150*sin((a*6)*PI/180),
    100*cos((a*6+60)*PI/180), 100*sin((a*6+60)*PI/180),
    200*cos((a)*PI/180), 200*sin((a)*PI/180));
    endShape();
  }
}