[p5.js 2.0 Bug Report]: perspective() with no args breaks rendering
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
2.1.2+
Web browser and version
All
Operating system
All
Steps to reproduce this
Steps:
- Create a WebGL canvas
- Call
perspective()with on args - Draw something
The thing you draw doesn't show up.
Snippet:
function setup() { createCanvas(400, 400, WEBGL); } function draw() { background(220); // Works if you comment this out. // This used to work in 2.1.1, broke in 2.1.2 perspective() sphere(100) }
Live: https://editor.p5js.org/davepagurek/sketches/dyOdWm6fD