Skip to content
See the MatrixGrid with this shiny new Bonsai plugin.
Find file
New pull request
Fetching latest commit...
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.

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 () {

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


View the docs

Something went wrong with that request. Please try again.