Phaser API Documentation

  Version: 
setClosePath(value)

Description:

Sets if this Shape path is closed during rendering when stroked. Note that some Shapes are always closed when stroked (such as Ellipse shapes)

This call can be chained.

Parameters:

name type description
value boolean

Set to true if the Shape should be closed when stroked, otherwise false.

Returns:
Description:

This Game Object instance.

Since: 3.13.0