canvas-factory
Usage
-
Install node-canvas.
-
run
npm install --save canvas-factory
Optional
- Install FFmpeg if needed to save as mp4.
Example
const createFactory = ;const factory = ;const canvas = factory;const ctx = canvas; const d = 10;ctxfillStyle = 'red';ctx;ctx;ctx"l"10+d*250; // pass false first to not addFrame this ctxctx;ctx"o"10+d*450; // pass false first to not addFrame this ctxctx; factory