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