mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-01 02:38:43 -05:00
13 lines
338 B
JavaScript
13 lines
338 B
JavaScript
var paper = require('paper');
|
|
var scope = require('./Tadpoles.pjs')(new paper.Size(1024, 768));
|
|
|
|
scope.view.exportFrames({
|
|
amount: 400,
|
|
directory: __dirname,
|
|
onComplete: function() {
|
|
console.log('Done exporting.');
|
|
},
|
|
onProgress: function(event) {
|
|
console.log(event.percentage + '% complete, frame took: ' + event.delta);
|
|
}
|
|
});
|