Skip to content

Latest commit

 

History

History
9 lines (5 loc) · 464 Bytes

(7 kyu) Canvas Fun 1 - Draw Lines.md

File metadata and controls

9 lines (5 loc) · 464 Bytes

Canvas Fun #1: Draw Lines (7 kyu)

http://www.codewars.com/kata/canvas-fun-number-1-draw-lines

Given some points, your task is to draw lines between two adjacent points.

points is given by a 2D integer array. Each subarray has two elements, means the x-coordinate, y-coordinate of each point.

The basic canvas(width 100 x height 100), background color(white) and pen's color(red) are already defined in the initial code(please don't delete or modify them).