Draw Lines with easelJS using Ticker in HTML



EaseLJS is a JavaScript library to make the HTML5 Canvas element easy. Use it for creating games, graphics, etc.

To draw lines using Ticker method in HTML with easeLJS:

var myLine = new createjs.Shape();

myLine.graphics.setStrokeStyle(4);
myLine.graphics.beginStroke(color);
myLine.graphics.moveTo(startX, startY);

startY++;

myLine.graphics.lineTo(startX, startY);
myLine.graphics.endStroke();
Samual Sam
Samual Sam

Learning faster. Every day.


Advertisements