Name

noLoop()

Examples
def setup(): 
    size(200, 200)
    noLoop()

def draw(): 
    line(10, 10, 190, 190)
x = 0.0

def setup():
    size(200, 200)

def draw():
    background(204)
    global x
    x = x + 0.1
    if x > width:
        x = 0
    line(x, 0, x, height)

def mousePressed():
    noLoop()

def mouseReleased():
    loop()
someMode = False

def setup():
    noLoop()

def draw():
    if someMode:
        pass

def mousePressed():
    global someMode
    someMode = True
    redraw()  # or loop()
Description
Syntax
Related loop()
redraw()
draw()
Updated on Wed Jan 18 17:32:21 2017.
Creative Commons License