paper.js/examples/Node.js/exportTadpoles.js
2013-05-08 01:13:41 -07:00

12 lines
294 B
JavaScript

require('paper');
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);
}
});