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

strokeWeight(1) appears as 2 pixels for a rectangle.

Open orbitalchicken opened this issue 4 months ago • 2 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.10

Web browser and version

Firefox 131 on Windows, Chrome 130 on Linux and Windows

Operating system

Windows, Linux

Steps to reproduce this

Steps:

  1. draw a rectangle with a strokeWeight of 1 px.
  2. PR0BLEM: The rectangle have a 2px stroke.

Snippet:

function setup() {
  createCanvas(400, 400);
    
  strokeWeight(1)
  rect(50,50,50,50);
}

orbitalchicken avatar Oct 19 '24 18:10 orbitalchicken