p5.js
p5.js copied to clipboard
1px stroke line is 2px wide, lines are offset by 0.5 px and should not
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.11.0
Web browser and version
Firefix 131, Chrome 130
Operating system
Linux Mint
Steps to reproduce this
Steps:
- draw a 1 pixel wide horizontal line Result: the line seams to be offset by 0.5 px and should not
Snippet:
function setup() {
createCanvas(200, 200);
background(255);
strokeWeight(1);
line(50, 10, 100, 10);
rect(100, 10, 10, 10);
}