Skip to main content

strokeWeight

Description

Sets the width of the stroke used for lines, points and the border around shapes. All widths are set in units of pixels.

Note that it is affected by any transformation or scaling that has been applied previously.

Syntax

strokeWeight(weight)

Parameters

ParameterDescription
weightweight of the stroke (in pixels)