参考 begin()

begin()

Begins drawing shapes to the framebuffer.

myBuffer.begin() and myBuffer.end() allow shapes to be drawn to the framebuffer. myBuffer.begin() begins drawing to the framebuffer and myBuffer.end() stops drawing to the framebuffer. Changes won't be visible until the framebuffer is displayed as an image or texture.

示例

Notice any errors or typos? Please let us know. Please feel free to edit src/webgl/p5.Framebuffer.js and open a pull request!

相关参考