Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update clearDepth() example to restore trails #7095

Merged
merged 1 commit into from
Jun 15, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading