strokeWeight(1) draws 2 pixel width

Hello,

My exploration of this with with Google Chrome.

My test code:

function setup() 
  {
  print(pixelDensity());
    
  createCanvas(720, 400);
  background(0);
  //noSmooth();

  translate(50, 0);
  stroke(255);
  
  for (let i=0; i<21; i++)
    {  
    strokeWeight(i);
    line(30*i, height-50, 30*i, 50);
    point(30*i, 25);
    }
  }

Reference:
https://p5js.org/reference/#/p5/strokeWeight

StrokeWidth() 0 to 20 for points and lines (expand the image for detail):

:)