phaserjs / phaser

Phaser is a fun, free and fast 2D game framework for making HTML5 games for desktop and mobile web browsers, supporting Canvas and WebGL rendering.
https://phaser.io
MIT License
37.22k stars 7.1k forks source link

3.13 Line Shape Doc doesn't mention lineWidth parameter #4068

Closed netgfx closed 6 years ago

netgfx commented 6 years ago

Version

Description

The new (3.13) Line Shape setStrokeStyle( [color] [, alpha]) doesn't mention lineWidth parameter, resulting in invisible lines when used (because alpha is read as the color)

https://photonstorm.github.io/phaser3-docs/Phaser.GameObjects.Shape.html#setStrokeStyle

Example Test Code

let r1 = this.add.line(200, 200, 0, 0, 0, 100, 0x6666ff);
r1.setStrokeStyle(0xff0000, 1.0);
photonstorm commented 6 years ago

Thank you for submitting this issue. We have fixed this and the fix has been pushed to the master branch. It will be part of the next release. If you get time to build and test it for yourself we would appreciate that.