Drawing lines in the Canvas

Now we have several circles here, so how about connecting them with lines? Let's draw a straight line between each circle.

Get HTML5 Game Development by Example : Beginner's Guide - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.