Contents

strokeStyle

A CSS color, a gradient, or a pattern used to stroke lines and shapes.

Declaration

attribute custom strokeStyle;

Discussion

This property may be set to any CSS color, to a pattern object, or to a linear or radial gradient object. When the stroke(), strokeRect(), or strokeText() operation is performed, the lines are drawn using the style specified by strokeStyle.

See Also

Filling and Stroking Lines and Paths

Related Documentation