Phaser API Documentation

  Version: 
addTiltShift([radius], [amount], [contrast], [blurX], [blurY], [strength])

Description:

Adds a Tilt Shift effect.

This Bokeh effect can also be used to generate a Tilt Shift effect, which is a technique used to create a miniature effect by blurring everything except a small area of the image. This effect is achieved by blurring the top and bottom elements, while keeping the center area in focus.

See also Bokeh.

Parameters:

name type arguments Default description
radius number <optional> 0.5

The radius of the bokeh effect.

amount number <optional> 1

The amount of the bokeh effect.

contrast number <optional> 0.2

The color contrast of the bokeh effect.

blurX number <optional> 1

The amount of horizontal blur.

blurY number <optional> 1

The amount of vertical blur.

strength number <optional> 1

The strength of the blur.

Returns:
Description:

The Bokeh TiltShift FX Controller.

Since: 3.60.0