Package Exports
- @inwebo/render.js/src/Renderer2D
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@inwebo/render.js) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Render.js
Super simple javascript canvas renderer, it abstracts the boring parts.
Objectives
Nous voulons éviter toutes les opérations nécessaires et redondantes pour dessiner sur un context de canvas en 2D.
Installations
Github
Download and extract the current depot. Include it in your application.
Yarn
yarn add -d @inwebo/render.jsNPM
npm install @inwebo/render.jsClasses
- RendererAbstract You MUST NOT instance it directly.
- Renderer2D The main Renderer.
Include
Plain javascript
<script src="dist/renderer.min.js"></script>ES6
You should really consider to use it like an ES6 class
import Renderer2D from "@inwebo/render/";Now the class Renderer2D is available.
Use case
You must have one or more html canvas elements available.
<canvas id="layer-0"></canvas>
<!-- n-canvas -->
<canvas id="layer-n"></canvas>