ABOUT ME

-

Today
-
Yesterday
-
Total
-

[processing] 피는 꽃 (flower)
데모 2013.05.27 13:03

int val = 50; void setup() { size(300, 500, OPENGL); frameRate(24); } void draw() { background(0xffffffff); translate(width/2, height/2, 0); strokeWeight(1); stroke(0, 0, 0, 255); scale(1); rotateX(map(mouseY, 0, height, 0.0, QUARTER_PI)); rotateY(PI/9.0); fill(255,0,0,50); val = max(50, mouseX); for(float a=0;a<360;a=a+45){ beginShape(TRIANGLE_FAN); vertex(0, 0, 0); bezierVertex( 100*cos(a*PI/1..

Paper

Designed by Tistory.