paper.js/examples/Node.js/Tadpoles.js

17 lines
545 B
JavaScript
Raw Normal View History

// Please note: When loading paper as a normal module installed in node_modules,
// you would use this instead:
// var paper = require('paper-jsdom-canvas');
var paper = require('../../dist/paper-full.js');
var scope = require('./Tadpoles.pjs')(new paper.Size(1024, 768));
2013-05-08 23:38:23 -04:00
scope.view.exportFrames({
2014-08-16 13:24:54 -04:00
amount: 400,
directory: __dirname,
onComplete: function() {
console.log('Done exporting.');
},
onProgress: function(event) {
console.log(event.percentage + '% complete, frame took: ' + event.delta);
}
2011-08-20 09:50:25 -04:00
});