Skip to content

[p5.js 2.0 Bug Report]: filterColor() reference example broken (p5.strands) #8560

@nbogie

Description

@nbogie

Most appropriate sub-area of p5.js?

  • WebGL
  • p5.strands

p5.js version

2.2.1, 2.2.2 rcs

Web browser and version

n/a (any)

Operating system

n/a (any)

Steps to reproduce this

Steps:

  1. visit https://beta.p5js.org/reference/p5/filtercolor/
  2. observe example sketch fails

error & stack trace

VM503:9 Uncaught (in promise) ReferenceError: canvasContent is not defined
    at eval (eval at id (filtercolor/:1:872297), <anonymous>:9:32)
    at <anonymous>:1:872335
    at e.Shader.modify (<anonymous>:1:890546)
    at t.buildFilterShader (<anonymous>:1:303149)
    at setup (VM500 about:srcdoc:4:14)

code in question

  filterColor.begin();
  let warped = [0,0] // omitting real coord calc here

  filterColor.set(getTexture(canvasContent, warped));
  filterColor.end();

I'd like to work on this, please.
(canvasContent has to be referenced from filterColor block).

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions