Ishpreet Posted April 13, 2018 Share Posted April 13, 2018 Is there any way to use opacity of stroke in Phaser? Like we can apply these features on Phaser.Text let style = { font: "Arial", fill: "white", stroke: "#000000", strokeThickness: "16", fontSize: "24px" }; But how to add opacity to stroke, something like strokeOpacity? Link to comment Share on other sites More sharing options...
rich Posted April 15, 2018 Share Posted April 15, 2018 The stroke color is just any valid CSS color value, so give it an rgba color like: 'rgba(0,0,0,0.5)' instead of a hex string. Ishpreet 1 Link to comment Share on other sites More sharing options...
Ishpreet Posted August 21, 2018 Author Share Posted August 21, 2018 On 4/16/2018 at 4:12 AM, rich said: The stroke color is just any valid CSS color value, so give it an rgba color like: 'rgba(0,0,0,0.5)' instead of a hex string. Thanks ! That worked like a charm Link to comment Share on other sites More sharing options...
Recommended Posts