node-easel0.1.2 • Public • Published
$ npm install node-easel
Note Cairo graphics is required to run node-easel && node-canvas. Read the install docs at https://github.com/LearnBoost/node-canvas, for full install instructions.
To see a full working demo, checkout the examples folder.
node-easel is completely polymorphic with EaselJS. A good starting point is to checkout the EaselJS documentation.
//Import easel;var Stage = createjsStage;var Shape = createjsShape;var Graphics = createjsGraphics;var fs = ;//Create the canvas to draw tovar c = 980 580;var ctx = c;//Create graphics objectvar g = ;var shape = g;//Draw a circleg;//Add the item to our stage, and call .tick(); to draw the object.var stage = c;stage;stage;//Create a PNG file.fs;