An open API service indexing awesome lists of open source software.

https://github.com/davidfig/viewport

viewport designed to work with pixi.js
https://github.com/davidfig/viewport

Last synced: about 1 year ago
JSON representation

viewport designed to work with pixi.js

Awesome Lists containing this project

README

          

## viewport.js
a 2D camera (viewport) designed to work with PIXI.js

## Code Example

// create a renderer
renderer = new Renderer({color: 'rgba(0, 0, 0, 0.25)'});

// create the viewport
var viewport = new Viewport(renderer, 1000, 1000);

// move the center
viewport.moveTo(500, 500);

// zoom in
viewport.zoom(500);

## Installation

npm install yy-viewport

## Example
https://davidfig.github.io/viewport/

see also
* https://davidfig.github.io/debug/
* https://davidfig.github.io/update/
* https://davidfig.github.io/animate/
* https://davidfig.github.io/renderer/

## API Reference
{{>main}}

* * *

Copyright (c) 2016 YOPEY YOPEY LLC - MIT License - Documented by [jsdoc-to-markdown](https://github.com/75lb/jsdoc-to-markdown)