Phaser API Documentation

  Version: 
restore()

Description:

Restores the most recently saved state of the Graphics by popping from the state stack.

Use Phaser.GameObjects.Graphics#save to save the current state, and call this afterwards to restore that state.

If there is no saved state, this command does nothing.

Returns:
Description:

This Game Object.

Since: 3.0.0