Utils.Debug#pointer()

pointer(pointer, hideIfUp, downColor, upColor, color)

Renders the Pointer.circle object onto the stage in green if down or red if up along with debug text.

Parameters
Name Type Argument Default Description
pointer Phaser.Pointer

The Pointer you wish to display.

hideIfUp boolean <optional>
false

Doesn't render the circle if the pointer is up.

downColor string <optional>
'rgba(0,255,0,0.5)'

The color the circle is rendered in if down.

upColor string <optional>
'rgba(255,0,0,0.5)'

The color the circle is rendered in if up (and hideIfUp is false).

color string <optional>
'rgb(255,255,255)'

color of the debug info to be rendered. (format is css color string).

Source code: utils/Debug.js (Line 331)
doc_phaser
2017-02-14 11:19:11
Comments
Leave a Comment

Please login to continue.