frameRate()
EnvironmentDescription
Sets the target number of frames to display per second.
Syntax
void frameRate(int fps)
Parameters
| Name | Type | Description |
|---|---|---|
| fps | int | target frames per second |
Returns
voidRelated
Under the Hood
From Processing.h:
void frameRate(int fps);
Under the Hood
From Processing.cpp:
void PApplet::frameRate(int fps){currentFrameRate=fps;targetFrameTime=1.0/fps;}