Skip to content

Commit

Permalink
Default the fill/line style to transparent
Browse files Browse the repository at this point in the history
  • Loading branch information
photonstorm committed Jul 24, 2023
1 parent da947e8 commit 719bfd9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/gameobjects/graphics/Graphics.js
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,10 @@ var Graphics = new Class({
* @private
* @since 3.0.0
*/
this._lineWidth = 1.0;
this._lineWidth = 1;

this.lineStyle(1, 0, 0);
this.fillStyle(0, 0);

this.setDefaultStyles(options);
},
Expand Down

0 comments on commit 719bfd9

Please sign in to comment.