You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[p5.js 2.0+ Bug Report]: point(x,y) fails for x >= 256 #9380
Bug for both Safari 27.0 and Chrome 157.0.8103.39. Interestingly, but is not occurring for Firefox 159.0.1 on same system.
Operating system
MacOSX Tahoe 26.7.1
Steps to reproduce this
Issue:
The point command is failing to render properly when x >= 256. This bug does not seem to exist in p5.js 2.3.0 but seems to exist in 2.3.1 through 2.3.4.
Steps:
Run the following code
Snippet:
functionsetup(){createCanvas(400,100);strokeWeight(4);// not necessary to reproduce; just helps visibilitypoint(255,50);// x=255 renders properlypoint(256,75);// x=256 (or bigger) does not render}
Thank you for reporting! This appears to be fixed with the upcoming release https://cdn.jsdelivr.net/npm/p5@2.4.0-rc.6/lib/p5.js (https://editor.p5js.org/ksen0/sketches/t1uXcjkIs) so I will close this one! But great catch, thank you, and if you find any other edge cases of this bug please report!
Activity
ksen0 commentedon Nov 8, 2026
Thank you for reporting! This appears to be fixed with the upcoming release
https://cdn.jsdelivr.net/npm/p5@2.4.0-rc.6/lib/p5.js(https://editor.p5js.org/ksen0/sketches/t1uXcjkIs) so I will close this one! But great catch, thank you, and if you find any other edge cases of this bug please report!