From 719bfd9dd8be39c0e8b0ffb8f207293008f93223 Mon Sep 17 00:00:00 2001 From: Richard Davey Date: Mon, 24 Jul 2023 14:33:49 +0100 Subject: [PATCH] Default the fill/line style to transparent --- src/gameobjects/graphics/Graphics.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/gameobjects/graphics/Graphics.js b/src/gameobjects/graphics/Graphics.js index 433a24077e..1704d492c0 100644 --- a/src/gameobjects/graphics/Graphics.js +++ b/src/gameobjects/graphics/Graphics.js @@ -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); },