Name

frameCount

Examples
def setup():
    frameRate(30)

def draw():
    line(0, 0, width, height)
    print(frameCount)
Description The system variable frameCount contains the number of frames that have been displayed since the program started. Inside setup() the value is 0, after the first iteration of draw it is 1, etc.
Related frameRate()

Updated on Mon Sep 21 15:53:25 2020.

If you see any errors or have comments, please let us know.