Skip to content

.getFrameRate()


Description

This function returns the frameRate_ value of an EasyEase Object.



Examples:

getFrameRate_01.pde
import easy.ease.*;

EasyEase curve = new EasyEase(this);

void setup() {
  size(600, 400);

  // this will print 60 to the console
  println(curve.getFrameRate());
}

getFrameRate_02.pde
import easy.ease.*;

EasyEase curve = new EasyEase(this);

void setup() {
  size(600, 400);

    //when setting a different `frameRate` for the object,
  //the sketch `frameRate` should be set accordingly
  frameRate(10);
  curve.setFrameRate(10);

  // this will print 10 to the console
  println(curve.getFrameRate());
}


Syntax

myCurve.getFrameRate()


Return

float