Skip to content

Latest commit

 

History

History
65 lines (42 loc) · 1.12 KB

environment.rst

File metadata and controls

65 lines (42 loc) · 1.12 KB

Environment

p5

size()

size

title()

title

pixel_density()

pixel_density

height, width

Global integers that store the current width and height of the sketch window.

frame_count

Global integer that keeps track of the current frame number of the sketch i.e., the number of frames that have been drawn since the sketch was started.

frame_rate

Global integer variable that keeps track of the current frame rate of the sketch. The frame rate can only be set when the sketch is run by passing in the optional frame_rate keyword argument to the run() function. See the run() function's reference page for details.