Skip to content

Commit fb5289a

Browse files
committed
Merge branch 'main' of https://github.com/processing/p5.js into roll-fn
2 parents de8708d + 5426891 commit fb5289a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/core/rendering.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -664,7 +664,7 @@ p5.prototype.createFramebuffer = function(options) {
664664
* createCanvas(100, 100, WEBGL);
665665
*
666666
* // Create the p5.Framebuffer objects.
667-
* prev = createFramebuffer({ format: FLOAT });
667+
* previous = createFramebuffer({ format: FLOAT });
668668
* current = createFramebuffer({ format: FLOAT });
669669
*
670670
* describe(
@@ -673,9 +673,9 @@ p5.prototype.createFramebuffer = function(options) {
673673
* }
674674
*
675675
* function draw() {
676-
* // Set the previous p5.Framebuffer to the
676+
* // Swap the previous p5.Framebuffer and the
677677
* // current one so it can be used as a texture.
678-
* previous = current;
678+
* [previous, current] = [current, previous];
679679
*
680680
* // Start drawing to the current p5.Framebuffer.
681681
* current.begin();

0 commit comments

Comments
 (0)