paper.js/src/Layer.js

12 lines
212 B
JavaScript
Raw Normal View History

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