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 Tue Feb 27 14:07:12 2024.

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