-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Open
Description
Most appropriate sub-area of p5.js?
- Accessibility
- Color
- Core/Environment/Rendering
- Data
- DOM
- Events
- Image
- IO
- Math
- Typography
- Utilities
- WebGL
- Build process
- Unit testing
- Internationalization
- Friendly errors
- Other (specify if possible)
p5.js version
2.1.1
Web browser and version
142.0.7444.176 (Official Build) (arm64)
Operating system
macOS 14.6.1
Steps to reproduce this
Steps:
A: with above platform run this sketch https://openprocessing.org/sketch/2797749 or same on p5 web editor.
OR
B: run the following snippet.
Observed: three colour pickers created, all defaulting to black instead of expected blue, magenta, yellow.
Snippet:
function setup() {
createCanvas(200, 200);
background(200)
createColorPicker(color(50, 0, 240))
createColorPicker("magenta")
createColorPicker("#F0FF00")
}results on various browsers:
Browsers yielding black:
-
Chrome 142.0.7444.176 on macOS 14.6.1
-
Safari 17.6 (very old!) on macOS 14.6.1
-
Discord user Jiskra originally reported the issue on windows chrome and edge (with p5v2.0.5, and a similar snippet)
Browsers correctly yielding colours:
- Firefox (145.0.1 (aarch64) on macOS 14.6.1
Affected p5 versions
- The problem occurs in at least these versions of p5: v2.0.0, v2.0.5, v2.1.1
- Changing p5 version back to v1.11.11 I get the expected colours on all browsers tested.