1.3.0 • Published 2 years ago

pixi-color-effects v1.3.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Pixi Color Effects

A various color Matrix filters for pixi.js with TON of presets!

DEMO

img

Install

# npm
npm install pixi-color-effects

# yarn
yarn add pixi-color-effects

Usage

import { Tint } from "pixi-color-effects";

const app = new Application({
  // **
});

let filter = new Tint();
app.stage.filters = [filter];

//  change value
let num = 0;
app.ticker.add((delta) => {
  num += 0.1;
  filter.value = Math.sin(num) * 1;
});

Use Preset

import { Preset } from "pixi-color-effects";
let filter = new Preset("aladin");
app.stage.filters = [filter];

Methods

Methods usage

let filter = new Tint();

//  use a method
filter.getEffectConfig();
MethodArgumentDescription
getEffectConfigGet the filter's configuration object

License

This project is licensed under the MIT License.

1.2.0

2 years ago

1.1.0

2 years ago

1.0.5

2 years ago

1.3.0

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago