MCPcopy
hub / github.com/processing/p5.js / beginClip

Method beginClip

src/core/p5.Renderer.js:272–278  ·  view source on GitHub ↗
(options = {})

Source from the content-addressed store, hash-verified

270 }
271
272 beginClip(options = {}) {
273 if (this._clipping) {
274 throw new Error("It looks like you're trying to clip while already in the middle of clipping. Did you forget to endClip()?");
275 }
276 this._clipping = true;
277 this._clipInvert = options.invert;
278 }
279
280 endClip() {
281 if (!this._clipping) {

Callers 2

p5.RendererGL.jsFile · 0.45
settingFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected