Skip to main content
Version: 0.11

Pixelate Effect

etro.effect.Pixelate merges pixels into larger blocks.

tip

This effect is GPU-accelerated (see etro.effect.Shader).

Usage

const effect = new etro.effect.Pixelate({
pixelSize: 10, // the size of a pixel in pixels
});

Inheritance

etro.effect.Pixelate inherits from etro.effect.Shader.

Options

pixelSize (required)

tip

This is a Dynamic Property.

The size of a block in pixels.