Class: GraphicsData

Phaser. GraphicsData

new GraphicsData(lineWidth, lineColor, lineAlpha, fillColor, fillAlpha, fill, shape)

A GraphicsData object.

Parameters:
Name Type Description
lineWidth number

the width of the line to draw

lineColor number

the color of the line to draw

lineAlpha number

the alpha of the line to draw

fillColor number

the color of the fill

fillAlpha number

the alpha of the fill

fill boolean

whether or not the shape is filled with a colour

shape Circle | Rectangle | Ellipse | Line | Polygon

The shape object to draw.

Source:
src/gameobjects/GraphicsData.js line 14

Methods

clone()

Creates a new GraphicsData object with the same values as this one.

Source:
src/gameobjects/GraphicsData.js line 74
Returns:
Type
GraphicsData

phaser-ce@2.20.0 is on GitHub and NPM

Documentation generated by JSDoc 3.6.7 on 2022-12-10 using Tomorrow.