Skip to content

A Library for Processing wich helps deal with non Linear Functions Aka easing motions

License

Notifications You must be signed in to change notification settings

fredegd/EasyEase

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

90 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EasyEase library for Processing

Easing Function and non linear distribution utilities for Processing IDE

Demo


General Purpose

EasyEase provides a ready-to-use setup for in order to apply easing curves to a spatial distribution or an animations, resulting in more natural and visually appealing effects.


Download:

here the latest release, including the library, documentation and examples. in .zip format


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.

note: 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


Documentation

Documentation can be found here at this link.


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.
It may be constructed inside or outside the sketch's setup() function

more information about all different types of constructors: here

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  mover = new EasyEase(this, intensity);

void setup() {
  size(600, 400);
}
void draw() {
  float start = 100;
  float stop = 400;
  float motor = mover.framer(frameCount*0.5);

  float x = mover.inOut(motor, start, stop);

  fill(255, 0, 0);
  rect(x, (motor%1)*(height-100), 100,100);
}

basicUsage.pde

Basic Usage


TestedPlatforms:

  • OS-X
  • Windows
  • Linux

Processing:

The latest Processing version the library has been tested with: 4.3


Dependencies:

EasyEase depends on no other libraries


Other Examples:

a list of explanatory and beginner-friendly examples can be fund here

Source

The source Code is open-source and can be found [here] https://github.com/fredegd/EasyEase


Processing library guidelines

This Library was written is in accordance with the Processing Library Guidelines


Keywords:

easing , motion, easing-curve, gradient, non-linear, curve, interpolation


Last update

March 2024


Issues

Issues, unexpected bugs and behaviors, or any kind of suggestion or improvement is highly welcome and can be posted here


Troubleshooting

If you're having trouble, have a look at the Processing Wiki for further information, please contact the author.

About

A Library for Processing wich helps deal with non Linear Functions Aka easing motions

Resources

License

Stars

Watchers

Forks

Packages

No packages published