Sets the style for rendering line endings.
Sets the style for rendering line endings. These ends are either squared, extended, or rounded, each of which specified with the corresponding parameters:
ROUND. The default cap is
To make Py5Graphics.point() appear square, use
stroke_cap(SQUARE) (no cap) causes points to become invisible.
This method is the same as stroke_cap() but linked to a
Py5Graphics object. To see example code for how it can be used, see stroke_cap().
Underlying Processing method: PGraphics.strokeCap
stroke_cap( cap: int, # either SQUARE, PROJECT, or ROUND /, ) -> None
Updated on March 06, 2023 02:49:26am UTC