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
- Host: GitHub
- URL: https://github.com/davidfig/viewport
- Owner: davidfig
- License: mit
- Created: 2016-07-04T06:11:54.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2018-04-05T22:48:26.000Z (about 8 years ago)
- Last Synced: 2025-03-28T11:51:06.710Z (about 1 year ago)
- Language: JavaScript
- Size: 1.23 MB
- Stars: 5
- Watchers: 1
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.hbs
- License: LICENSE
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)