Skip to content

Commit 3b79c2c

Browse files
committed
Added default lineStyle alpha value.
1 parent bf695ee commit 3b79c2c

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

v3/src/gameobjects/graphics/Graphics.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,8 @@ var Graphics = new Class({
7575

7676
lineStyle: function (lineWidth, color, alpha)
7777
{
78+
if (alpha === undefined) { alpha = 1; }
79+
7880
this.commandBuffer.push(
7981
Commands.LINE_STYLE,
8082
lineWidth, color, alpha

0 commit comments

Comments
 (0)