mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-03 19:45:44 -05:00
12 lines
302 B
JavaScript
12 lines
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);
|
||
|
}
|
||
|
});
|