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 Sun Nov 26 15:34:43 2017.
Creative Commons License