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, # the weight (in pixels) of the stroke /, ) -> None
Updated on September 01, 2022 14:08:27pm UTC