마우스 따라 다니는 우주선 |
|||||
---|---|---|---|---|---|
작성자 | 김용남 | 등록일 | 22.05.09 | 조회수 | 26 |
void setup() { size(800, 800); } void draw() { background(0, 0, 129); noStroke(); fill(72, 156, 255); ellipse(400, 900, 500, 500); fill(255, 255, 255); textSize(27); text("To infinty and beyond!", 245, 750); smooth(); fill(random(255), random(255), random(255)); rect(40, 250, 10, 10); rect(100, 100, 10, 10); rect(70, 80, 5, 5); rect(80, 600, 5, 5); rect(130, 500, 10, 10); rect(200, 200, 10, 10); rect(740, 300, 10, 10); rect(640, 780, 10, 10); rect(720, 740, 5, 5); fill(random(255), random(255), random(255)); rect(300, 90, 10, 10); rect(400, 150, 10, 10); rect(450, 50, 10, 10); rect(430, 630, 5, 5); rect(500, 300, 10, 10); rect(600, 100, 10, 10); rect(610, 340, 5, 5); rect(280, 30, 5, 5); rect(650, 200, 10, 10); rect(720, 400, 10, 10); rect(780, 440, 5, 5); fill(random(255), random(255), random(255)); rect(690, 40, 10, 10); rect(680, 160, 5, 5); rect(680, 700, 5, 5); rect(340, 40, 5, 5); rect(220, 80, 5, 5); rect(200, 680, 5, 5); rect(110, 440, 5, 5); rect(280, 600, 10, 10); rect(580, 75, 5, 5); rect(130, 710, 10, 10); rect(760, 570, 10, 10); rect(60, 770, 5, 5); fill(255, 0, 0); triangle(mouseX, mouseY-30, mouseX-85, mouseY+80, mouseX+85, mouseY+80); fill(120, 120, 120); triangle(mouseX, mouseY+50, mouseX-30, mouseY+130, mouseX+30, mouseY+130); fill(255, 255, 255); ellipse(mouseX, mouseY, 100, 100); rect(mouseX-49, mouseY, 100, 100); fill(110, 227, 247); rect(mouseX-20, mouseY, 20, 30); rect(mouseX+7, mouseY, 20, 30); fill(0, 0, 0); line(mouseX-15, mouseY-30, mouseX+15, mouseY); fill(255, 94, 0); triangle(mouseX-15, mouseY+135, mouseX, mouseY+165, mouseX+15, mouseY+135); triangle(mouseX-25, mouseY+135, mouseX-20, mouseY+150, mouseX-5, mouseY+135); triangle(mouseX+5, mouseY+135, mouseX+20, mouseY+150, mouseX+25, mouseY+135); fill(255, 0, 0); triangle(mouseX-7.5, mouseY+135, mouseX, mouseY+150, mouseX+7.5, mouseY+135); } |
이전글 | 마우스 따라다니는 픽셀 물고기 |
---|---|
다음글 | 사자 머리 색칠하기 |