Temechon 4193dea86d Added link to repo 8 年之前
..
README.md 4193dea86d Added link to repo 8 年之前

README.md

Canvas2D Inspector

The main repo can be found here

An extension to easily debug your Canvas2D, made with HTML/CSS.

Usage

Insert the lib in your project:

<script src="c2dinspector.js"></script>

In your code, create a new Inspector by giving it the BABYLON.Engine:

new INSPECTOR.Canvas2DInspector(engine); 

A right panel will be created by listing all instances of Canvas2D created in your application.

Contribute

npm install
grunt

Create the lib from source

grunt dist

The library will be in the dist folder.