Getting Started
Prerequisites:
Processing needs to be installed in your machine.
Download:
Latest release can be downloaded from here in .zip format.
It includes the library, documentation and examples.
Installation
opt.1: Library manager
Open Processing, go-to: Sketch > Import Library > Manage Libraries > EasyEase
opt.2: Manually install:
-
Download the latest release of the library.
-
Unzip / extract the content of EasyEase.zip into your Processing sketchbook's /libraries folder.
Tip
sketchbook's /libraries folder is usually located under /User/Yourname/Documents/Processing/libraries. in order to view or change your sketchbook location go to: File > Preferences. The "sketchbook location" setting is the first option of the dialog
Info
see also the Processing guidelines on How-to-Install-a-Contributed-Library
Basic Usage
1) Import the Library
Once correctly installed, import the library by selecting: Sketch > Import Library > EasyEase.
Alternatively type import easy.ease.*
at the beginning of your sketch.
2) Declare and construct objects from the Class EasyEase
An EasyEase Object should be declared globally using one of the available constructors
It may be constructed inside or outside the sketch's setup()
function
3) Access the easing methods
Each EasyEase object contains a set of different easing methods as well as several build-in helper functions
Example:
import easy.ease.*;
float intensity = 9.2;
EasyEase curve = new EasyEase(this, intensity);
void setup() {
size(600, 400);
}
void draw() {
float start = 100;
float stop = 400;
float framedCount = curve.framer(frameCount * 0.5);
float x = curve.inOut(framedCount, start, stop);
float y = curve.linear(framedCount, 0, height - 100);
fill(255, 0, 0);
rect(x, y, 100,100);
}
basicUsage.pde