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 Jul 11 06:52:23 2017.
Creative Commons License