New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

phixi

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

phixi

Bridge library to use pixi.js like phina.js

latest
npmnpm
Version
0.1.0
Version published
Maintainers
1
Created
Source

phixi.js

Bridge library to use pixi.js like phina.js

Install

npm i phixi pixi.js phina.js

npm v6.9+ required

Features

pixi.js extension

const app = new PIXI.Application();
const sprite = PIXI.Sprite.from("./assets/player.png");

// pixi.js only
sprite.position.set(128, 128);
sprite.anchor.set(0.5, 0.5);
app.stage.addChild(sprite);
// When removing
app.stage.removeChild(sprite);

// With phixi
sprite
  .setPosition((128, 128)
  .setOrigin(0.5, 0.5)
  .addChildTo(app.stage)
;
// When removing
sprite.remove();

Using phina.js features

const sprite = PIXI.Sprite.from('./assets/player.png');

// phina.js Tweener feature
sprite.tweener
  .clear()
  .to({ x: 256 })
  .call(() => console.log('end'));

phina-like app cycle

// TODO

License

MIT

Other features

  • Typescript typing supported

Keywords

pixi.js

FAQs

Package last updated on 06 Jan 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts