paper.js/src/Layer.js

12 lines
212 B
JavaScript
Raw Normal View History

2011-02-11 12:37:36 -05:00
Layer = Item.extend({
initialize: function() {
this.base();
this.children = [];
},
2011-02-11 12:49:04 -05:00
draw: function(ctx) {
2011-02-11 12:37:36 -05:00
for(var i = 0, l = this.children.length; i < l; i++) {
2011-02-11 12:49:04 -05:00
this.children[i].draw(ctx);
2011-02-11 12:37:36 -05:00
}
}
});