기본 콘텐츠로 건너뛰기

Animation_Autumn

void setup()
{
   background(58, 15, 2);
  size(600, 600);
}

float degree= 0.0;
int xPos, yPos;

void draw()
{
  pushMatrix();
  translate(xPos, yPos);
  rotate(degree);
  ellipse(xPos/10, yPos/10, 60, 10);
  popMatrix();
  degree +=0.5;
}
void mousePressed()
{
   color c = color (25, 255, 0, 200);
  fill(c);
 ellipse(xPos, yPos, 50 , 50);
   c = color (random(255), 53, 7, 180);
  fill(c);
  ellipse(xPos, yPos, 60, 60 );
 
  ellipse(xPos, yPos, 20, 20);
 
xPos = mouseX;
yPos = mouseY;
}
void keypressed()
{
  if(key == 's') saveFrame("filename-####.png");
}

댓글

이 블로그의 인기 게시물

Interactive Toy_Snap4Arduino_Board

Interactive Toy_Movement Mechanism

철사와 뮤지엄보드를 이용해 관절을 만들고  서브모터에 직접 연결하여 턱이 열리는 효과와 위에 지느러미가 살랑살랑 움직이는 효과를 주었습니다.  

Interactive toy_Sketch

모터로 크랭크를 돌려 입을 열었다 닫았다하는 장난감 https://www.youtube.com/watch?v=S2GMus02JYY https://www.youtube.com/watch?v=uz8TV7gkeT0 자석을 이용한 크랭크 장난감 https://www.youtube.com/watch?v=VEFR6KY_W9o 크랭크구조로 입을 벌렸다 닫았다하며 팔과 다리를 수직으로 움직이는 장난감 아이들이 좀 더 재미있는 식사를 할 수 있는 기능을 가진 토이 https://vimeo.com/224048309   톱니구조의 그림 그리는 장난감 열리는 조명 장난감 https://vimeo.com/111496741