Returns an array which maps the default blend modes to supported Canvas blend modes.
If the browser doesn't support a blend mode, it will default to the normal source-over
blend mode.
Which Canvas blend mode corresponds to which default Phaser blend mode.
Takes a reference to the Canvas Renderer, a Canvas Rendering Context, a Game Object, a Camera and a parent matrix and then performs the following steps:
This function is only meant to be used internally. Most of the Canvas Renderer classes use it.
name | type | arguments | description |
---|---|---|---|
renderer | Phaser.Renderer.Canvas.CanvasRenderer |
A reference to the current active Canvas renderer. |
|
ctx | CanvasRenderingContext2D |
The canvas context to set the transform on. |
|
src | Phaser.GameObjects.GameObject |
The Game Object being rendered. Can be any type that extends the base class. |
|
camera | Phaser.Cameras.Scene2D.Camera |
The Camera that is rendering the Game Object. |
|
parentMatrix | Phaser.GameObjects.Components.TransformMatrix | <optional> |
A parent transform matrix to apply to the Game Object before rendering. |
true
if the Game Object context was set, otherwise false
.