@pixi/filter-multi-color-replace
v5.1.1
Published
PixiJS filter to dynamically replace multiple colors
Downloads
54,455
Readme
MultiColorReplaceFilter
PixiJS filter to dynamically replace multiple colors.
Installation
npm install @pixi/filter-multi-color-replace
Usage
import {MultiColorReplaceFilter} from '@pixi/filter-multi-color-replace';
import {Container} from 'pixi.js';
const container = new Container();
container.filters = [
new MultiColorReplaceFilter(
[0x0000FF, 0x00FF00],
[0xFF0000, 0xFFFF00],
0.2
)
];
Documentation
See https://filters.pixijs.download/main/docs/MultiColorReplaceFilter.html