File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -664,7 +664,7 @@ p5.prototype.createFramebuffer = function(options) {
664
664
* createCanvas(100, 100, WEBGL);
665
665
*
666
666
* // Create the p5.Framebuffer objects.
667
- * prev = createFramebuffer({ format: FLOAT });
667
+ * previous = createFramebuffer({ format: FLOAT });
668
668
* current = createFramebuffer({ format: FLOAT });
669
669
*
670
670
* describe(
@@ -673,9 +673,9 @@ p5.prototype.createFramebuffer = function(options) {
673
673
* }
674
674
*
675
675
* function draw() {
676
- * // Set the previous p5.Framebuffer to the
676
+ * // Swap the previous p5.Framebuffer and the
677
677
* // current one so it can be used as a texture.
678
- * previous = current;
678
+ * [ previous, current] = [ current, previous] ;
679
679
*
680
680
* // Start drawing to the current p5.Framebuffer.
681
681
* current.begin();
You can’t perform that action at this time.
0 commit comments