PIXI.filters.PixelateFilter

class PixelateFilter extends PIXI.Filter

This filter applies a pixelate effect making display objects appear 'blocky'.
originalfilter

See:

Constructor


new PIXI.filters.PixelateFilter(size: PIXI.Point | number<Array> | number) → {}
Parameters:
Name Type Attributes Default Description
size PIXI.Point | number<Array> | number

<optional>

10

Either the width/height of the size of the pixels, or square size

Summary


Properties from PixelateFilter

PIXI.Point | number<Array> | number
size = 10

Properties inherited from Filter

boolean
autoFit = true
PIXI.BLEND_MODES
blendMode = PIXI.BLEND_MODES.NORMAL
boolean
enabled

If enabled is true the filter is applied, if false it will not.

boolean
legacy
PIXI.MSAA_QUALITY
multisample

The samples of the filter.

number
padding
number
resolution
PIXI.State
state

The WebGL state the filter requires to render.

Properties inherited from Shader

PIXI.Program
program

Program that the shader uses.

Dict<any>
uniforms

Methods inherited from Filter

void
apply(filterManager: PIXI.FilterSystem, input: PIXI.RenderTexture, output: PIXI.RenderTexture, clearMode: PIXI.CLEAR_MODES, _currentState: object)

Public Properties


size PixelateFilter.ts:29
size: PIXI.Point | number<Array> | number = 10

This a point that describes the size of the blocks. x is the width of the block and y is the height.


Powered by webdoc!