Name

frameRate()

Examples
pos = 0

def setup():
    frameRate(4)

def draw():
    background(204)
    global pos
    pos += 1
    line(pos, 20, pos, 80)
    if pos > width:
        pos = 0
Description
Syntax
frameRate(fps)
Parameters
fps
Related frameRate
frameCount
setup()
draw()
loop()
noLoop()
redraw()
Updated on Wed Jan 18 17:32:21 2017.
Creative Commons License