JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 3
  • Score
    100M100P100Q41052F
  • License GPL-3.0

Super simple javascript canvas renderer, it abstracts the boring parts.

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.js

NPM

npm install @inwebo/render.js

Classes

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>

Tips and tricks

Web