magic4
This commit is contained in:
16
static/Magic4/paperjs-v0.12.15/examples/Node.js/Tadpoles.js
Normal file
16
static/Magic4/paperjs-v0.12.15/examples/Node.js/Tadpoles.js
Normal file
@@ -0,0 +1,16 @@
|
||||
// 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));
|
||||
|
||||
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);
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user