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