ClassRendering & Filters@public
FlxColorMatrixFilter
Renderer-neutral 4×5 color-matrix effect descriptor.
ts
export declare class FlxColorMatrixFilterConstructors
ts
constructor(matrix: readonly number[], alpha?: number)Constructs a new instance of the FlxColorMatrixFilter class
| Parameter | Type | Description |
|---|---|---|
matrix | readonly number[] | - |
alpha | number | - |
Properties
| Property | Modifiers | Type | Description |
|---|---|---|---|
alpha | readonly | number | - |
kind | readonly | `` | - |
matrix | readonly | readonly number[] | - |
Methods
static grayscale()
ts
static grayscale(alpha?: number): FlxColorMatrixFilterStandard luminance-preserving grayscale transform.
Parameters:
| Parameter | Type | Description |
|---|---|---|
alpha | number | - |
Returns: FlxColorMatrixFilter