Phaser API Documentation

  Version: 
setStyle(style)

Description:

Set the text style.

Parameters:

name type description
style object

The style settings to set.

Returns:
Description:

This Text object.

Examples:
text.setStyle({
    fontSize: '64px',
    fontFamily: 'Arial',
    color: '#ffffff',
    align: 'center',
    backgroundColor: '#ff00ff'
});
Since: 3.0.0