본문 바로가기
데모

[processing] line02

by hansoo.labs 한수댁 2013. 5. 29.



void setup (){
  size(400,400);
  background(255,255,255);
  frameRate(15);
}

int a=0;
void draw() {
  
  if(a > 48) noLoop();
  
  a ++;
  
  stroke (10,100+a,20,a*2);
  line(a*8,0, width - (a*8),height);
  stroke (10,100,100+a,a*2);
  line(0,a*8, width,height-(a*8));
   
}

댓글0