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

Method updatePixels

src/webgl/p5.RendererGL.js:564–586  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

562 }
563
564 updatePixels() {
565 const fbo = this._getTempFramebuffer();
566 fbo.pixels = this.pixels;
567 fbo.updatePixels();
568 this.push();
569 this.resetMatrix();
570 this.clear();
571 this.states.setValue("imageMode", constants.CORNER);
572 this.image(
573 fbo,
574 0,
575 0,
576 fbo.width,
577 fbo.height,
578 -fbo.width / 2,
579 -fbo.height / 2,
580 fbo.width,
581 fbo.height
582 );
583 this.pop();
584 this.GL.clearDepth(1);
585 this.GL.clear(this.GL.DEPTH_BUFFER_BIT);
586 }
587
588 zClipRange() {
589 return [-1, 1];

Callers

nothing calls this directly

Calls 8

clearMethod · 0.95
_getTempFramebufferMethod · 0.80
imageMethod · 0.80
pushMethod · 0.45
resetMatrixMethod · 0.45
setValueMethod · 0.45
popMethod · 0.45
clearDepthMethod · 0.45

Tested by

no test coverage detected