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();

Updated on: 29-Jan-2020

230 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements