diff --git a/README.md b/README.md index e3fa5a3..a570516 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# pixi-picture +# @pixi/picture Compatible with PixiJS `6.0.4` and up. No guarantee for earlier versions! @@ -57,6 +57,20 @@ If specified `useContextAlpha: false` in renderer creation parameters, main fram When using `MaskFilter` with `maskBefore=true`, input is automatically flipped by Y. This operation is not needed if your base filter does not care about flipping Y, for example `BlurFilter` or `ColorMatrixFilter`. In this case, you can specify `maskFilter.safeFlipY=true`, that will turn off extra flipping. +## Vanilla JS, UMD build + +All pixiJS v6 plugins has special `umd` build suited for vanilla. +Navigate `pixi-picture` npm package, take `dist/pixi-picture.umd.js` file. + +```html + + +``` + +```js +let sprite = new PIXI.picture.Sprite(); +``` + ## Previous versions For PixiJS `v5` and prior see README `pixi-v5` branch, or just use npm package `pixi-picture`