舞台
4. 画布
4.10. 结束图形缓冲区
p5.layers
参看开始图形缓冲区
endLayer()
Restores the global draw functions rect()
etc. so that they operate on the
canvas again, instead of the Graphics created by or passed as an argument to
beginLayer()
. This function also draws the Graphics onto the canvas – although
this behavior can be suppressed.
Syntax:
endLayer()
Restores the global draw functions, and draws the Graphics onto the canvas
unless the argument to enterGraphics()
was a Graphics.
endLayer(x, y, [width, height])
Restores the global draw functions, and draws the Graphics onto the canvas.
endLayer(false)
Restores the global draw functions. Does not draw the Graphics onto the canvas.