Posts

Showing posts with the label Fall

가을 표현하다

Image
가을 표현하다 수업때 배운 Processing으로 가을을 표현해 보았다. 가을하면 생각나는 장면은 하늘에서 빨강으로 그리고 노랑으로 물든 나뭇잎들이 떨어지는 장면이다.  Particle system을 이용해 낙엽이 떨어지는 동작을 표현했다.  마우스 버튼을 누르면 바람이 불어 낙엽들이 한쪽 스크린으로 날아가는 모습 또한 표현했다. Processing Source Code: // Richard Y. Park // Oct. 18, 2017 // SADI201713013 // Product Interaction // License: MIT color bgc  =  color( 0 , 0 , 0 ); color skyc  =  color( 209 ,  239 ,  245 ); color groundc  =  color( 150 , 52 , 22 ); color red  =  color( 200 , 0 , 0 ); color yellow  =  color( 200 , 200 , 0 ); int  brightness  =   200 ; float  r  =   0 ; int  counter  =   0 ; ParticleSystem ps1, ps2; void  setup(){   size( 500 ,  500 , P3D);   ps1  =   new  ParticleSystem(red,  new ...