Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
See the MatrixGrid with this shiny new Bonsai plugin.
JavaScript
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
LICENSE
Makefile
MatrixGrid.js
MatrixGrid.min.js
Readme.md
docs.md

Readme.md

The Bonsai.js MatrixGrid

Have you ever had to work with compounding matrices? It’s a bit mind-boggling to try to figure out without being able to visualize it.

Henceforth you will no longer need to walk blind! Allow me to introduce to you the Bonsai MatrixGrid!

Simple Usage

See it in action in Orbit

var myRect = new Rect(x, y, width, height).fill('random').addTo(stage);
var myRectsMatrix = new MatrixGrid({ matrix: myRect.attr('matrix') });
myRect.on('render', function () {
  myRectsMatrix.update(myRect.attr('matrix'));
});

Voilà! You now have the ability to visualize the matrix of your bonsai elements with each and every update. Enjoy!

API

View the docs

Something went wrong with that request. Please try again.