Skip to content

.setLog()

Description

This function is used to enable/disable the console logs for the setter functions;

By default it is enabled (true) it means: each call to any of the setters will triggers a log to the console.



Example:

setLog.pde
import easy.ease.*;


EasyEase curve = new EasyEase(this);

void setup() {
  size(600, 400);
  curve.setLog(false);
  // the following setter function won't return any log
  curve.setIntensity(4.2);
  curve.setTotalLength(6);
  curve.setDelay(2);
  curve.setSpan(1);
}

void draw() {
  float mot_counter = curve.framer(frameCount);
  float x = curve.inBounce(mot_counter ) * (width-100);
  background(#f1f1f1);
  fill(#ff0000);
  rect(x, 0, 100, width);
}



Syntax

.setLog(bool)

Parameters

bool (boolean) either true or false


Return

void