createGraphics()
Creates an additional canvas that can be overlaid on any other existing canvases
Last updated
def setup():
createCanvas(400,400)
frameRate(7)
global buffer
buffer = createGraphics(200, 200)
background(255, 79, 132)
def draw():
noStroke()
fill(255, 164, 28,100)
circle(random(width),random(height),50)
# drawTickAxes()
buffer.background(112, 88, 255)
buffer.noStroke()
# buffer.drawTickAxes()
buffer.fill(176, 235, 51)
buffer.circle(random(20,190),random(20,190),50)
image(buffer, 100, 100)