2017년 10월 9일 월요일

Processing Source Code

<head>  

<script src="//cloud.github.com/downloads/processing-js/processing-js/processing-1.4.1.js">

</script> 

</head> 

<body>

<script data-processing-target="mycanvas" type="text/processing">

void setup(){  

  size (600, 600);  

  background(66, 134, 244);

}

float degree = 0.0;

void draw(){  

  pushMatrix();  

  translate(width/2, height/2);  

  rotate(degree);  

  color c = color(244, random(184, 255), 65, 10);  

  fill(c);  

  stroke(200, 100, 200, 10);  

  rect(cos(degree)*80+degree, cos(degree)*80+degree, 60, 60);  

  popMatrix();  

  degree += 0.1;

}

</script><canvas id="mycanvas"></canvas></body>

댓글 없음:

댓글 쓰기

미래를 위한 제품 디자인 소개 (졸업전 소개글)

"미래는 예측하는 것이 아니라 만들어가는 것이다." 우리가 강연이나 SNS를 통하여 언제나 흔하게 접할 수 있는 문구입니다. 그렇기 때문에 미래에 관하여 이야기할 때면, 너무 쉽게 인용하는 말이기도 합니다. 그러나 우리 세대가 진정으...