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: 2020-01-29T06:39:08+05:30

335 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements