Reference strokeWeight()

strokeWeight()

Sets the width of the stroke used for points, lines, and the outlines of shapes.

Note: strokeWeight() is affected by transformations, especially calls to scale().

Examples

Syntax

strokeWeight(weight)

Parameters

weight
Number:

the weight of the stroke (in pixels).

Notice any errors or typos? Please let us know. Please feel free to edit src/core/shape/attributes.js and open a pull request!

Related References