Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

carena

0.1.3 • Public • Published

Carena

Lightweight javascript scene graph for use with canvas

Structure

Provides structure of the tree, in an extremely stripped down representation

var treeDefinition = { canvas : { yellow : { green : {} }, red : { blue : {} } } }

Behavior

Implemented in javascript using css-like selectors

var tree = carena.Builder(treeDefinition, [ /* default features */ ]);
tree.find("canvas.yellow.green").remove();

Styling

{ 
  "yellow, red" : {
    width: 100,
    height: 10
  }
}

Keywords

none

install

npm i carena

Downloadsweekly downloads

1

version

0.1.3

license

none

last publish

collaborators

  • avatar