Home
News
Learn
Download
Examples
Community
Login
Phaser API Documentation
Version:
Namespaces
Classes
Events
Game Objects
Physics
Scenes
Changelog
Member of:
Phaser.GameObjects.TextStyle
setStroke(color, thickness)
Description:
Set the stroke settings.
Parameters:
name
type
description
color
string | CanvasGradient | CanvasPattern
The stroke color.
thickness
number
The stroke thickness.
Returns:
Description:
The parent Text object.
Type:
Phaser.GameObjects.Text
Since:
3.0.0
Source:
src/gameobjects/text/TextStyle.js
(Line
788
)
Possible examples