paper.js/examples/Node.js/exportTadpoles.js
2011-08-13 19:11:21 +02:00

12 lines
No EOL
302 B
JavaScript

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