p5.js
p5.js copied to clipboard
feat(webgl): add global property support for p5.strands
Resolves #8171
Changes:
What was changed:
- Modified
src/strands/strands_api.jsto automatically intercept 16 p5 global properties when strands is active - Properties are automatically converted to uniforms with callbacks to their live values
- Implemented proper context restoration when strands becomes inactive
Screenshots of the change: N/A - This is an API enhancement without visual changes.
PR Checklist
- [ ]
npm run lintpasses - [ ] Inline reference is included / updated
- [ ] Unit tests are included / updated
hey @davepagurek, kindly review this too when you get a chance
Hey @davepagurek, made the necessary changes. Please review whenever you get a chance.