[p5.js 2.0 Bug Report]: Warnings about omitting strokes on high-detail 3D primitives don't use FES
Open
@skyyash is already working on this.
Since Jan 12, 2026.
Area:WebGL
Good First Issue
Help Wanted
p5.js 2.0+
- Dominant language
- JavaScript
- Stars
- 24k
- Forks
- 3.8k
- Avg merge
- 3d 16h
- Merged PRs (30d)
- 25
Description
Most appropriate sub-area of p5.js?
- Accessibility
- Color
- Core/Environment/Rendering
- Data
- DOM
- Events
- Image
- IO
- Math
- Typography
- Utilities
- WebGL
- Build process
- Unit testing
- Internationalization
- Friendly errors
- Other (specify if possible)
p5.js version
All
Web browser and version
All
Operating system
All
Steps to reproduce this
Steps:
- Turn off FES
- Draw a cylinder with a high level of detail
- It still logs a warning
That's because these sorts of warnings are raw console.logs in the codebase:
https://github.com/processing/p5.js/blob/9799eada451dea7f2b50fe5f52ffd725463b343a/src/webgl/3d_primitives.js#L2582-L2585
Snippet:
p5.disableFriendlyErrors = true
function setup() {
createCanvas(400, 400, WEBGL);
cylinder(20, 100, 40, 40)
}
Additionally, this also triggers when you are drawing to a p5.Geometry, i.e.:
function setup() {
createCanvas(400, 400, WEBGL);
const myGeom = buildGeometry(() => cylinder(20, 100, 40, 40))
noStroke()
model(geom)
}
Arguably we should just silence this error if inside of buildGeometry since we don't know if it will eventually be drawn with strokes or not, to avoid misleading false positives.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.