Fix broken reference links in lerpColor() documentation (p5.js 2.0) by rakesh2OO5 · Pull Request #8518 · processing/p5.js
Summary
Fixes broken reference links in the lerpColor() documentation for p5.js 2.0.
The links to lerp and colorMode were pointing to incorrect hash targets, which resulted in 404 errors on the current reference site.
What Changed
Updated JSDoc links in src/color/creating_reading.js to use the existing hash-based reference format used elsewhere in the docs:
- #/lerp → #/p5/lerp
- #/colorMode → #/p5/colorMode
Verification
- Reproduced the 404 issue on the beta reference site.
- Ran
npm run docslocally. - Confirmed the updated links appear correctly in
docs/reference/data.jsonand point to valid reference pages.
Scope
Docs-only change (JSDoc). No runtime or API behavior affected.