Name

createGraphics()

Examples
def setup(): 
    size(200, 200)
    global pg
    pg = createGraphics(100, 100)

def draw(): 
    pg.beginDraw()
    pg.background(102)
    pg.stroke(255)
    pg.line(pg.width*0.5, pg.height*0.5, mouseX, mouseY)
    pg.endDraw()
    image(pg, 50, 50)
Description
Syntax
createGraphics(w, h)
createGraphics(w, h, renderer)
createGraphics(w, h, renderer, path)
Parameters
w
h
renderer
path
Updated on Wed Jan 18 17:32:21 2017.
Creative Commons License