Add shader examples to noise random and millis functions
About processing/p5.js
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. Looking for p5.js 2.0? http://beta.p5js.org
- art
- creative-coding
- design
- education
- graphics
- html
- javascript
- learning
The change
Resolves #8777 (Noise, Random, Time batch) Changes: Adds inline p5.strands examples to the reference documentation for 3 functions across 3 files: src/math/noise.js • noise() — cloud-like texture effect using buildFilterShader() with filterColor src/math/random.js • random() — random RGB colors on a shape src/utilities/time_date.js • millis() — time-based color transitions Each example includes a brief explanation that the function can be used in shaders with p5.strands. The noise() example demonstrates buildFilterShader() for 2D filter effects, while random() and millis() use buildColorShader(). Screenshots of the change: <!-- If applicable, add screenshots depicting the changes. --> PR Checklist <!-- To check any option, replace the "○" with a "✓". Be sure to check out how it looks in the Preview tab! Feel free to remove any portion of the template that is not relevant for your issue. --> • ✓ npm run lint passes • ✓ [Inline reference] is included / updated • ○ [Unit tests] are included / updated [Inline reference]: https://p5js.org/contribute/contributing_to_the_p5js_reference/ [Unit tests]: https://github.com/processing/p5.js/tree/main/contributor_docs#unit-tests