Fall Animation

댓글


  1. float angle = 0.0;

    void setup() {
    size(600, 600);
    background(134,3,9);
    smooth();
    }

    void draw() {
    if (mousePressed == true ) {
    strokeWeight(0);
    fill (255,255,255,5);
    ellipse (mouseX,mouseY += 3.5 ,20,20);
    }

    translate(mouseX, mouseY);
    rotate(angle);
    strokeWeight (0);
    stroke (255,179,6,50);
    fill (255,179,6,5);
    rect(-40, -40,80,80);
    angle += 0.05;
    }

    답글삭제

댓글 쓰기