draw()

Draws to the framebuffer by calling a function that contains drawing instructions.

The parameter, callback, is a function with the drawing instructions for the framebuffer. For example, calling myBuffer.draw(myFunction) will call a function named myFunction() to draw to the framebuffer. Doing so has the same effect as the following:

myBuffer.begin();
myFunction();
myBuffer.end();

उदाहरण

सिंटैक्स

draw(callback)

पैरामीटर्स

callback
Function:

function that draws to the framebuffer.

This page is generated from the comments in src/webgl/p5.Framebuffer.js . Please feel free to edit it and submit a pull request!

संबंधित संदर्भ