Skip to content

[p5.js 2.0+ Bug Report]:Typos in JSDoc comments: "widhts" in helpers.js and "coordiante" in p5.RendererGL.js #8744

@harshiltewari2004

Description

@harshiltewari2004

Most appropriate sub-area of p5.js?

  • Accessibility
  • Color
  • Core/Environment/Rendering
  • Data
  • DOM
  • Events
  • Image
  • IO
  • Math
  • Typography
  • Utilities
  • WebGL
  • WebGPU
  • p5.strands
  • Build process
  • Unit testing
  • Internationalization
  • Friendly errors
  • Other (specify if possible)

p5.js version

main branch (verified on https://github.com/processing/p5.js as of April 25, 2026)

Web browser and version

N/A — documentation/comment typos, not a runtime bug

Operating system

N/A — documentation/comment typos, not a runtime bug

Steps to reproduce this

This is a documentation/comment fix rather than a runtime bug, so the standard reproduction steps don't apply. Both typos were verified to exist on the current main branch.

Typo 1: widhtswidths

File: src/core/helpers.js (line 19)

// For negative widhts or heights, the absolute value is used.
//              ^^^^^^

Typo 2: coordiantecoordinate (appears twice)

File: src/webgl/p5.RendererGL.js (lines 323–324)

In the JSDoc for the pixel-read function:

 * @param {Number} x The x coordiante to read, premultiplied by pixel density
 * @param {Number} y The y coordiante to read, premultiplied by pixel density

Notes

  • Both occur in JSDoc/inline comments only; no runtime behavior is affected.
  • The coordiante typo will surface in the generated reference for anyone reading the JSDoc on the website.
  • I'd like to fix this myself if approved.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions