Needlessly Provoking Marsupials
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

@pixi/filter-multi-color-replace

2.5.0 • Public • Published

MultiColorReplaceFilter

PixiJS v4 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://pixijs.github.io/pixi-filters/docs

Keywords

none

install

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

Downloadsweekly downloads

1,312

version

2.5.0

license

MIT

homepage

pixijs.com

repository

Gitgithub

last publish

collaborators

  • avatar
  • avatar
  • avatar