Phaser API Documentation

  Version: 
setLineWidth(startWidth, [endWidth])

Description:

Sets the width of the line.

When using the WebGL renderer you can have different start and end widths. When using the Canvas renderer only the startWidth value is used. The endWidth is ignored.

This call can be chained.

Parameters:

name type arguments description
startWidth number

The start width of the line.

endWidth number <optional>

The end width of the line. Only used in WebGL.

Returns:
Description:

This Game Object instance.

Since: 3.13.0