캐릭터 움직 |
|||||
---|---|---|---|---|---|
작성자 | 김윤민 | 등록일 | 17.07.14 | 조회수 | 54 |
void setup() { size(640,360); background(255); ellipseMode(CENTER); rectMode(CENTER); } void draw(){ background(255); //body fill(183,240,177); rect(mouseX,mouseY,80,160); fill(183,240,177); rect(mouseX,mouseY+10,60,160); //legs fill(183,240,177); rect(mouseX-20,mouseY+120,20,60); fill(183,240,177); rect(mouseX+20,mouseY+120,20,60); //head fill(183,240,177); ellipse(mouseX,mouseY,120,120); //eyes fill(255); ellipse(mouseX-20,mouseY-8,20,50); ellipse(mouseX+20,mouseY-8,20,50); //mouth line(mouseX+10,mouseY+30,mouseX-10,mouseY+30); } 꼽추가 되었다.
|
이전글 | 캐릭터움직이기 |
---|---|
다음글 | 꿈길 과제 |