PstrokeWeight
processing
Sets the width of the stroke used for lines, points, and the border around shapes. All widths are set in units of pixels.
Warning: There is a known rounding bug inside Processing. Size 1 pixels may not draw. Use a 1.01 stroke weight. See Ppoint
example.
Link to original Processing doc
PstrokeWeight is available since version 1.0.0.
See also
Signatures
Examples
// @preview image
150 100 '2D3' PGraphics //new image instance
0xffffffff Pbackground //white background
0xff000000 Pstroke //black stroke (ARGB color)
12 PstrokeWeight //stroke width 12pixels
20 30 80 30 Pline
120 30 Ppoint
6 PstrokeWeight //stroke width 6 pixels
20 50 80 50 Pline
120 50 Ppoint
1 PstrokeWeight //stroke width 1 pixels
20 70 80 70 Pline
120 70 Ppoint
Pencode //render the image in a base64 format on the stack