paper.js/examples/Node.js/Tadpoles.js
2013-05-08 20:38:23 -07:00

13 lines
299 B
JavaScript

require('paper');
var paper = require('./Tadpoles.pjs');
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);
}
});