@pixi/filter-multi-color-replace
TypeScript icon, indicating that this package has built-in type declarations

5.1.1 • Public • Published

MultiColorReplaceFilter

PixiJS filter to dynamically replace multiple colors.

View demo

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

Readme

Keywords

none

Package Sidebar

Install

npm i @pixi/filter-multi-color-replace

Homepage

pixijs.com/

Weekly Downloads

11,117

Version

5.1.1

License

MIT

Unpacked Size

23.9 kB

Total Files

8

Last publish

Collaborators

  • zyie
  • bigtimebuddy