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).

This page is generated from the comments in src/core/shape/attributes.js . Please feel free to edit it and submit a pull request!

Related References