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.

Examples

Syntax

strokeJoin(join)

Parameters

join
Constant:

either MITER, BEVEL, or ROUND

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