MCPcopy Index your code
hub / github.com/processing/p5.js / draw

Method draw

src/webgl/p5.Framebuffer.js:962–966  ·  view source on GitHub ↗

* 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

(callback)

Source from the content-addressed store, hash-verified

960 * }
961 */
962 draw(callback) {
963 this.begin();
964 callback();
965 this.end();
966 }
967
968 /**
969 * Loads the current value of each pixel in the framebuffer into its

Callers 6

makeSpecularTextureMethod · 0.95
constructorMethod · 0.95
filterMethod · 0.45
makeDiffusedTextureMethod · 0.45
structureFunction · 0.45
_drawBuffersMethod · 0.45

Calls 2

beginMethod · 0.95
endMethod · 0.95

Tested by

no test coverage detected