p5.js is a client-side JS platform that empowers artists, designers, students, and anyone to learn to code and express themselves creatively on the web. It is based on the core principles of Processing. http://twitter.com/p5xjs —
Makes sure the WebGL stencil check, which is what applies the clipping, is updated both when you start drawing to a framebuffer as well as when you stop (previously, it only did this when you stop)
Screenshots of the change:
The code in the issue now produces a red canvas in Chrome as expected:
Resolves #6989
Changes:
Screenshots of the change:
The code in the issue now produces a red canvas in Chrome as expected:![image](https://github.com/processing/p5.js/assets/5315059/341bf7ae-f2cb-4673-b349-f3f74eaa8d96)
PR Checklist
npm run lint
passes