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

Method beginClip

src/core/p5.Renderer3D.js:1125–1136  ·  view source on GitHub ↗
(options = {})

Source from the content-addressed store, hash-verified

1123 }
1124
1125 beginClip(options = {}) {
1126 super.beginClip(options);
1127
1128 this.drawTarget()._isClipApplied = true;
1129
1130 this._applyClip();
1131
1132 this.push();
1133 this.resetShader();
1134 if (this.states.fillColor) this.fill(0, 0);
1135 if (this.states.strokeColor) this.stroke(0, 0);
1136 }
1137
1138 endClip() {
1139 this.pop();

Callers

nothing calls this directly

Calls 5

drawTargetMethod · 0.95
pushMethod · 0.95
fillMethod · 0.95
strokeMethod · 0.95
_applyClipMethod · 0.45

Tested by

no test coverage detected