p5.js icon indicating copy to clipboard operation
p5.js copied to clipboard

1px stroke line is 2px wide, lines are offset by 0.5 px and should not

Open orbitalchicken opened this issue 1 year ago • 1 comments

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:

  1. 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);
}

orbitalchicken avatar Oct 19 '24 11:10 orbitalchicken