How do you make an image larger over time by it increasing then shrinking

I want to make an image get larger over time and then shrink back to normal size I want to know because of a school assignment

Answers

  • edited October 2017

    Start with a number, then apply it to an image.

    1. Do you know how to make a number get larger over time?

    2. Do you know how to either make a number larger or smaller based on an if condition?

    A number (such as a size) bouncing up and down between two values is like a bouncing ball. It has a direction it is moving, and a speed.

  • i dont know how to make a a number larger over time. Im fairly new to this.

  • Okay. This might get you started:

    int n;
    void draw(){
      n = n + 1;
      println(n);
    }
    

    If you don't know how to increment a variable then you should start by reading the introductory / getting started tutorials on http://processing.org

Sign In or Register to comment.