Hi Jonathan, i did something like:
paper.Item.inject({
myRotate: function(angle) {
this.my_rotation += angle;
this.rotate(angle);
},
my_rotation: 0
});
The "problem" is that i have to repeat this inject for all the types (raster, group, etc..)
Giving that all the other items types extend the Item type, is possible to automatically extend the inject to all the sub-types?