# pixon

> Run Pixi.js games offline

Latest version **1.0.0** (published 2017-05-05) · ISC license · 0 weekly downloads

## Install

```sh
npm install pixon
pnpm add pixon
yarn add pixon
bun add pixon
```

Provides the command `pixon`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2017-05-05 |
| First published | 2017-05-05 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 (+56 in 1 direct dependencies) |
| Install scripts | no |
| Maintainers | dawee |

## Links

- npm: https://www.npmjs.com/package/pixon
- npm.io page: https://npm.io/package/pixon

## Dependencies (1)

- [electron](https://npm.io/package/electron.md) 1.6.6

## Recent versions

- 1.0.0 (latest) — 2017-05-05

## README

# Pixon

Run Pixi.js games offline

## Usage

First install pixi.js and pixon

```sh
npm install --save pixi.js pixon
```

Fill your index.js with some Pixi.js code

```js
const { Application, Sprite } = require('pixi.js');


const app = new Application(800, 600, { backgroundColor : 0x1099bb });
const bunny = Sprite.fromImage('assets/bunny.png');


bunny.anchor.set(0.5);
bunny.x = app.renderer.width / 2;
bunny.y = app.renderer.height / 2;

app.stage.addChild(bunny);
app.ticker.add((delta) => bunny.rotation += 0.1 * delta);

module.exports = app;
```

Add **assets/bunny.png** in your project.

Add pixon in your start script :

```json
{
  "scripts": {
    "start": "pixon"
  }
}
```

Then, run :

```sh
npm start
```

---
_Source: https://npm.io/package/pixon · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
