pixi.js / packages / ticker /
@Matt Karl Matt Karl authored on 9 Dec 2018
Chad Engler committed on 9 Dec 2018
..
src Updating jsdocs for settings (#5214) 6 years ago
test Application plugin structure (#4933) 6 years ago
LICENSE Update LICENSE files to 2018 (#4585) 7 years ago
README.md Application plugin structure (#4933) 6 years ago
package.json [next] House-keeping for dependencies and tests (#5277) 6 years ago
README.md

@pixi/ticker

Installation

npm install @pixi/ticker

Usage

Create a Ticker object directly:

import { Ticker } from '@pixi/ticker';

const ticker = new Ticker();
ticker.start();

Use as an Application plugin:

import { TickerPlugin } from '@pixi/ticker';
import { Application } from '@pixi/app';

Application.registerPlugin(TickerPlugin);

const app = new Application();
app.ticker.start();