Reference strokeJoin()

strokeJoin()

Sets the style of the joints that connect line segments.

Joints are either mitered (MITER), beveled (BEVEL), or rounded (ROUND). The default joint is MITER in 2D mode and ROUND in WebGL mode.

The argument passed to strokeJoin() must be written in ALL CAPS because the constants MITER, BEVEL, and ROUND are defined this way. JavaScript is a case-sensitive language.

Calling strokeJoin() without an argument returns the current stroke join style, either MITER, BEVEL, or ROUND.

Examples

Syntax

strokeJoin(join)
strokeJoin()

Parameters

join
MITER|BEVEL|ROUND: either MITER, BEVEL, or ROUND

Returns

MITER|BEVEL|ROUND: the current stroke join style.
Notice any errors or typos? Please let us know. Please feel free to edit src/shape/attributes.js and open a pull request!

Related References