Sets the width of the stroke used for lines, points, and the border around shapes.
Sets the width of the stroke used for lines, points, and the border around shapes. All widths are set in units of pixels.
Using Py5Graphics.point() with
strokeWeight(1) or smaller may draw nothing to the Py5Graphics drawing surface, depending on the graphics settings of the computer. Workarounds include setting the pixel using the Py5Graphics.pixels or Py5Graphics.np_pixels arrays or drawing the point using either Py5Graphics.circle() or Py5Graphics.square().
Underlying Processing method: PGraphics.strokeWeight
stroke_weight(weight: float, /) -> None
weight: float - the weight (in pixels) of the stroke
Updated on November 12, 2021 11:30:58am UTC