Phaser API Documentation

  Version: 
setBlendMode(blendModeId, [force])

Description:

Sets the blend mode to the value given.

If the current blend mode is different from the one given, the pipeline is flushed and the new blend mode is enabled.

Parameters:

name type arguments Default description
blendModeId number

The blend mode to be set. Can be a BlendModes const or an integer value.

force boolean <optional> false

Force the blend mode to be set, regardless of the currently set blend mode.

Returns:
Description:

true if the blend mode was changed as a result of this call, forcing a flush, otherwise false.

Type:
  • boolean
Examples:
Since: 3.0.0