Skip to content

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

Closed as not planned
@orbitalchicken

Description

@orbitalchicken

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

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions