Phaser.Plugin.Juicy. ScreenFlash

new ScreenFlash(game, color)

Creates a new Juicy.ScreenFlash object.

Parameters:
Name Type Default Description
game Phaser.Game

Current game instance.

color string 'white'

The color to flash the screen.

Source - out/plugins/Juicy/Juicy.js, line 74

Methods

flash(maxAlpha, duration)

Flashes the screen

Parameters:
Name Type Argument Default Description
maxAlpha number <optional>
1

The maximum alpha to flash the screen to

duration number <optional>
100

The duration of the flash in milliseconds

Source - out/plugins/Juicy/Juicy.js, line 88
Phaser Copyright © 2012-2016 Photon Storm Ltd.
Documentation generated by JSDoc 3.4.3 on Thu Apr 13 2017 12:05:12 GMT-0700 (PDT) using the DocStrap template.