paper.js/examples/Node.js/exportTadpoles.js
2011-08-20 15:50:25 +02:00

12 lines
303 B
JavaScript

require('../../node.js/');
var paper = require('./Tadpoles');
paper.view.exportFrames({
amount: 400,
directory: __dirname,
onComplete: function() {
console.log('Done exporting.');
},
onProgress: function(event) {
console.log(event.percentage + '% complete, frame took: ' + event.delta);
}
});