Skip to content

Commit

Permalink
Merge pull request #7095 from processing/davepagurek-patch-1
Browse files Browse the repository at this point in the history
Update clearDepth() example to restore trails
  • Loading branch information
Qianqianye authored Jun 15, 2024
2 parents 9b9b5da + d61b286 commit 5426891
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/core/rendering.js
Original file line number Diff line number Diff line change
Expand Up @@ -664,7 +664,7 @@ p5.prototype.createFramebuffer = function(options) {
* createCanvas(100, 100, WEBGL);
*
* // Create the p5.Framebuffer objects.
* prev = createFramebuffer({ format: FLOAT });
* previous = createFramebuffer({ format: FLOAT });
* current = createFramebuffer({ format: FLOAT });
*
* describe(
Expand All @@ -673,9 +673,9 @@ p5.prototype.createFramebuffer = function(options) {
* }
*
* function draw() {
* // Set the previous p5.Framebuffer to the
* // Swap the previous p5.Framebuffer and the
* // current one so it can be used as a texture.
* previous = current;
* [previous, current] = [current, previous];
*
* // Start drawing to the current p5.Framebuffer.
* current.begin();
Expand Down

0 comments on commit 5426891

Please sign in to comment.