Skip to main content
Version: Phaser v4.1.0

Display

TOP_LEFT​

TOP_LEFT: number​

Description:

A constant representing a top-left alignment or position.

Source: src/display/align/const.js#L9
Since: 3.0.0

TOP_CENTER​

TOP_CENTER: number​

Description:

A constant representing a top-center alignment or position.

Source: src/display/align/const.js#L18
Since: 3.0.0

TOP_RIGHT​

TOP_RIGHT: number​

Description:

A constant representing a top-right alignment or position.

Source: src/display/align/const.js#L27
Since: 3.0.0

LEFT_TOP​

LEFT_TOP: number​

Description:

A constant representing a left-top alignment or position.

Source: src/display/align/const.js#L36
Since: 3.0.0

LEFT_CENTER​

LEFT_CENTER: number​

Description:

A constant representing a left-center alignment or position.

Source: src/display/align/const.js#L45
Since: 3.0.0

LEFT_BOTTOM​

LEFT_BOTTOM: number​

Description:

A constant representing a left-bottom alignment or position.

Source: src/display/align/const.js#L54
Since: 3.0.0

CENTER​

CENTER: number​

Description:

A constant representing a center alignment or position.

Source: src/display/align/const.js#L63
Since: 3.0.0

RIGHT_TOP​

RIGHT_TOP: number​

Description:

A constant representing a right-top alignment or position.

Source: src/display/align/const.js#L72
Since: 3.0.0

RIGHT_CENTER​

RIGHT_CENTER: number​

Description:

A constant representing a right-center alignment or position.

Source: src/display/align/const.js#L81
Since: 3.0.0

RIGHT_BOTTOM​

RIGHT_BOTTOM: number​

Description:

A constant representing a right-bottom alignment or position.

Source: src/display/align/const.js#L90
Since: 3.0.0

BOTTOM_LEFT​

BOTTOM_LEFT: number​

Description:

A constant representing a bottom-left alignment or position.

Source: src/display/align/const.js#L99
Since: 3.0.0

BOTTOM_CENTER​

BOTTOM_CENTER: number​

Description:

A constant representing a bottom-center alignment or position.

Source: src/display/align/const.js#L108
Since: 3.0.0

BOTTOM_RIGHT​

BOTTOM_RIGHT: number​

Description:

A constant representing a bottom-right alignment or position.

Source: src/display/align/const.js#L117
Since: 3.0.0

BLACK​

BLACK: Array.<number>​

Description:

A constant array used by the ColorMatrix class for black operations.

Source: src/display/ColorMatrix.js#L685
Since: 4.0.0

BLACK_WHITE​

BLACK_WHITE: Array.<number>​

Description:

A constant array used by the ColorMatrix class for black_white operations.

Source: src/display/ColorMatrix.js#L700
Since: 3.60.0

NEGATIVE​

NEGATIVE: Array.<number>​

Description:

A constant array used by the ColorMatrix class for negative operations.

Source: src/display/ColorMatrix.js#L710
Since: 3.60.0

DESATURATE_LUMINANCE​

DESATURATE_LUMINANCE: Array.<number>​

Description:

A constant array used by the ColorMatrix class for desaturated luminance operations.

Source: src/display/ColorMatrix.js#L720
Since: 3.60.0

SEPIA​

SEPIA: Array.<number>​

Description:

A constant array used by the ColorMatrix class for sepia operations.

Source: src/display/ColorMatrix.js#L730
Since: 3.60.0

LSD​

LSD: Array.<number>​

Description:

A constant array used by the ColorMatrix class for lsd operations.

Source: src/display/ColorMatrix.js#L740
Since: 3.60.0

BROWN​

BROWN: Array.<number>​

Description:

A constant array used by the ColorMatrix class for brown operations.

Source: src/display/ColorMatrix.js#L750
Since: 3.60.0

VINTAGE​

VINTAGE: Array.<number>​

Description:

A constant array used by the ColorMatrix class for vintage pinhole operations.

Source: src/display/ColorMatrix.js#L760
Since: 3.60.0

KODACHROME​

KODACHROME: Array.<number>​

Description:

A constant array used by the ColorMatrix class for kodachrome operations.

Source: src/display/ColorMatrix.js#L770
Since: 3.60.0

TECHNICOLOR​

TECHNICOLOR: Array.<number>​

Description:

A constant array used by the ColorMatrix class for technicolor operations.

Source: src/display/ColorMatrix.js#L780
Since: 3.60.0

POLAROID​

POLAROID: Array.<number>​

Description:

A constant array used by the ColorMatrix class for polaroid shift operations.

Source: src/display/ColorMatrix.js#L790
Since: 3.60.0

ALPHA_TO_BRIGHTNESS​

ALPHA_TO_BRIGHTNESS: Array.<number>​

Description:

A constant array used by the ColorMatrix class for alpha-to-brightness operations.

Source: src/display/ColorMatrix.js#L800
Since: 4.0.0

ALPHA_TO_BRIGHTNESS_INVERSE​

ALPHA_TO_BRIGHTNESS_INVERSE: Array.<number>​

Description:

A constant array used by the ColorMatrix class for inverse alpha-to-brightness operations.

Source: src/display/ColorMatrix.js#L815
Since: 4.0.0

BRIGHTNESS_TO_ALPHA​

BRIGHTNESS_TO_ALPHA: Array.<number>​

Description:

A constant array used by the ColorMatrix class for brightness-to-alpha operations.

Source: src/display/ColorMatrix.js#L830
Since: 4.0.0

BRIGHTNESS_TO_ALPHA_INVERSE​

BRIGHTNESS_TO_ALPHA_INVERSE: Array.<number>​

Description:

A constant array used by the ColorMatrix class for inverse brightness-to-alpha operations.

Source: src/display/ColorMatrix.js#L845
Since: 4.0.0

SHIFT_BGR​

SHIFT_BGR: Array.<number>​

Description:

A constant array used by the ColorMatrix class for shift BGR operations.

Source: src/display/ColorMatrix.js#L860
Since: 3.60.0