p5.js
p5.js copied to clipboard
strokeWeight(1) appears as 2 pixels for a rectangle.
Most appropriate sub-area of p5.js?
- [ ] Accessibility
- [ ] Color
- [X] 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
1.10
Web browser and version
Firefox 131 on Windows, Chrome 130 on Linux and Windows
Operating system
Windows, Linux
Steps to reproduce this
Steps:
- draw a rectangle with a strokeWeight of 1 px.
- PR0BLEM: The rectangle have a 2px stroke.
Snippet:
function setup() {
createCanvas(400, 400);
strokeWeight(1)
rect(50,50,50,50);
}