Name

saveFrame()

Examples
x = 0

def draw():
    global x
    background(204)
    if x < 100:
        line(x, 0, x, 100)
        x = x + 1
    else:
        noLoop()
    # Saves each frame as screen-0001.tif, screen-0002.tif, etc.
    saveFrame()
x = 0

def draw():
    global x
    background(204)
    if x < 100:
        line(x, 0, x, 100)
        x = x + 1
    else:
        noLoop()
    # Saves each frame as line-000001.png, line-000002.png, etc.
    saveFrame("line-######.png")
Description
Syntax
Parameters
filename
Related save()
createGraphics()
frameCount
Updated on Wed Jan 18 17:32:21 2017.
Creative Commons License