mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-01 02:38:43 -05:00
12 lines
303 B
JavaScript
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);
|
|
}
|
|
});
|