Namespace: BlendModes

Phaser. BlendModes

Phaser Blend Modes.

Since: 3.0.0
Source: src/renderer/BlendModes.js (Line 7)

Members


<static, constant> ADD :integer

Add blend mode. For Canvas and WebGL. Where both shapes overlap the color is determined by adding color values.

Type:
  • integer
Since: 3.0.0
Source: src/renderer/BlendModes.js (Line 37)

<static, constant> COLOR :integer

Color blend mode. For Canvas only. Preserves the luma of the bottom layer, while adopting the hue and chroma of the top layer.

Type:
  • integer
Since: 3.0.0
Source: src/renderer/BlendModes.js (Line 191)

<static, constant> COLOR_BURN :integer

Color Burn blend mode. For Canvas only. Divides the inverted bottom layer by the top layer, and then inverts the result.

Type:
  • integer
Since: 3.0.0
Source: src/renderer/BlendModes.js (Line 114)

<static, constant> COLOR_DODGE :integer

Color Dodge blend mode. For Canvas only. Divides the bottom layer by the inverted top layer.

Type:
  • integer
Since: 3.0.0
Source: src/renderer/BlendModes.js (Line 103)

<static, constant> COPY :integer

Copy blend mode. For Canvas only. Only the new shape is shown.

Type:
  • integer
Since: 3.0.0
Source: src/renderer/BlendModes.js (Line 311)

<static, constant> DARKEN :integer

Darken blend mode. For Canvas only. Retains the darkest pixels of both layers.

Type:
  • integer
Since: 3.0.0
Source: src/renderer/BlendModes.js (Line 81)

<static, constant> DESTINATION_ATOP :integer

Destination-out blend mode. For Canvas only. The existing canvas is only kept where it overlaps the new shape. The new shape is drawn behind the canvas content.

Type:
  • integer
Since: 3.0.0
Source: src/renderer/BlendModes.js (Line 289)

<static, constant> DESTINATION_IN :integer

Destination-in blend mode. For Canvas only. The existing canvas content is kept where both the new shape and existing canvas content overlap. Everything else is made transparent.

Type:
  • integer
Since: 3.0.0
Source: src/renderer/BlendModes.js (Line 267)

<static, constant> DESTINATION_OUT :integer

Destination-out blend mode. For Canvas only. The existing content is kept where it doesn't overlap the new shape.

Type:
  • integer
Since: 3.0.0
Source: src/renderer/BlendModes.js (Line 278)

<static, constant> DESTINATION_OVER :integer

Destination-over blend mode. For Canvas only. New shapes are drawn behind the existing canvas content.

Type:
  • integer
Since: 3.0.0
Source: src/renderer/BlendModes.js (Line 256)

<static, constant> DIFFERENCE :integer

Difference blend mode. For Canvas only. Subtracts the bottom layer from the top layer or the other way round to always get a positive value.

Type:
  • integer
Since: 3.0.0
Source: src/renderer/BlendModes.js (Line 147)

<static, constant> ERASE :integer

Alpha erase blend mode. For Canvas and WebGL.

Type:
  • integer
Since: 3.0.0
Source: src/renderer/BlendModes.js (Line 213)

<static, constant> EXCLUSION :integer

Exclusion blend mode. For Canvas only. Like difference, but with lower contrast.

Type:
  • integer
Since: 3.0.0
Source: src/renderer/BlendModes.js (Line 158)

<static, constant> HARD_LIGHT :integer

Hard Light blend mode. For Canvas only. A combination of multiply and screen like overlay, but with top and bottom layer swapped.

Type:
  • integer
Since: 3.0.0
Source: src/renderer/BlendModes.js (Line 125)

<static, constant> HUE :integer

Hue blend mode. For Canvas only. Preserves the luma and chroma of the bottom layer, while adopting the hue of the top layer.

Type:
  • integer
Since: 3.0.0
Source: src/renderer/BlendModes.js (Line 169)

<static, constant> LIGHTEN :integer

Lighten blend mode. For Canvas only. Retains the lightest pixels of both layers.

Type:
  • integer
Since: 3.0.0
Source: src/renderer/BlendModes.js (Line 92)

<static, constant> LIGHTER :integer

Lighten blend mode. For Canvas only. Where both shapes overlap the color is determined by adding color values.

Type:
  • integer
Since: 3.0.0
Source: src/renderer/BlendModes.js (Line 300)

<static, constant> LUMINOSITY :integer

Luminosity blend mode. For Canvas only. Preserves the hue and chroma of the bottom layer, while adopting the luma of the top layer.

Type:
  • integer
Since: 3.0.0
Source: src/renderer/BlendModes.js (Line 202)

<static, constant> MULTIPLY :integer

Multiply blend mode. For Canvas and WebGL. The pixels are of the top layer are multiplied with the corresponding pixel of the bottom layer. A darker picture is the result.

Type:
  • integer
Since: 3.0.0
Source: src/renderer/BlendModes.js (Line 48)

<static, constant> NORMAL :integer

Normal blend mode. For Canvas and WebGL. This is the default setting and draws new shapes on top of the existing canvas content.

Type:
  • integer
Since: 3.0.0
Source: src/renderer/BlendModes.js (Line 26)

<static, constant> OVERLAY :integer

Overlay blend mode. For Canvas only. A combination of multiply and screen. Dark parts on the base layer become darker, and light parts become lighter.

Type:
  • integer
Since: 3.0.0
Source: src/renderer/BlendModes.js (Line 70)

<static, constant> SATURATION :integer

Saturation blend mode. For Canvas only. Preserves the luma and hue of the bottom layer, while adopting the chroma of the top layer.

Type:
  • integer
Since: 3.0.0
Source: src/renderer/BlendModes.js (Line 180)

<static, constant> SCREEN :integer

Screen blend mode. For Canvas and WebGL. The pixels are inverted, multiplied, and inverted again. A lighter picture is the result (opposite of multiply)

Type:
  • integer
Since: 3.0.0
Source: src/renderer/BlendModes.js (Line 59)

<static, constant> SKIP_CHECK :integer

Skips the Blend Mode check in the renderer.

Type:
  • integer
Since: 3.0.0
Source: src/renderer/BlendModes.js (Line 16)

<static, constant> SOFT_LIGHT :integer

Soft Light blend mode. For Canvas only. A softer version of hard-light. Pure black or white does not result in pure black or white.

Type:
  • integer
Since: 3.0.0
Source: src/renderer/BlendModes.js (Line 136)

<static, constant> SOURCE_ATOP :integer

Source-out blend mode. For Canvas only. The new shape is only drawn where it overlaps the existing canvas content.

Type:
  • integer
Since: 3.0.0
Source: src/renderer/BlendModes.js (Line 245)

<static, constant> SOURCE_IN :integer

Source-in blend mode. For Canvas only. The new shape is drawn only where both the new shape and the destination canvas overlap. Everything else is made transparent.

Type:
  • integer
Since: 3.0.0
Source: src/renderer/BlendModes.js (Line 223)

<static, constant> SOURCE_OUT :integer

Source-out blend mode. For Canvas only. The new shape is drawn where it doesn't overlap the existing canvas content.

Type:
  • integer
Since: 3.0.0
Source: src/renderer/BlendModes.js (Line 234)

<static, constant> XOR :integer

Xor blend mode. For Canvas only. Shapes are made transparent where both overlap and drawn normal everywhere else.

Type:
  • integer
Since: 3.0.0
Source: src/renderer/BlendModes.js (Line 322)