PIXI.filters.PixelateFilter
class PixelateFilter extends PIXI.Filter
This filter applies a pixelate effect making display objects appear 'blocky'.

![]()
Constructor
new PIXI.filters.PixelateFilter(size: PIXI.Point | number<Array> | number) → {}
| 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 |
|
Properties inherited from Filter
| boolean |
|
| PIXI.BLEND_MODES |
|
| boolean |
If enabled is true the filter is applied, if false it will not. |
| boolean |
|
| PIXI.MSAA_QUALITY |
The samples of the filter. |
| number |
|
| number |
|
| PIXI.State |
The WebGL state the filter requires to render. |
Properties inherited from Shader
| PIXI.Program |
Program that the shader uses. |
| Dict<any> |
|
Methods inherited from Filter
| void |
|
Public Properties
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.