Home
News
Learn
Download
Examples
Community
Plugins
Phaser API Documentation
Version:
Namespaces
Classes
Events
Game Objects
Physics
Scenes
Changelog
Member of:
Phaser.GameObjects.Graphics
fillStyle(color, [alpha])
Description:
Set the current fill style.
Parameters:
name
type
arguments
Default
description
color
number
The fill color.
alpha
number
<optional>
1
The fill alpha.
Returns:
Description:
This Game Object.
Type:
Phaser.GameObjects.Graphics
Since:
3.0.0
Source:
src/gameobjects/graphics/Graphics.js
(Line
264
)
Possible examples