From cf4f17d89155c4e8729c68a4c0f02e33537d1e26 Mon Sep 17 00:00:00 2001 From: npalomba Date: Sun, 31 Mar 2019 13:31:17 +0200 Subject: [PATCH] Tested checkerboard against weird canvas values. A check for negative values in the canvas dimentions should be added. Signed-off-by: npalomba --- js/_checkerboard.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/js/_checkerboard.js b/js/_checkerboard.js index 6c5a380..cf9bbf0 100644 --- a/js/_checkerboard.js +++ b/js/_checkerboard.js @@ -1,5 +1,9 @@ var currentColor = firstCheckerBoardColor; +/* TODO add check for canvas dimentions (right now negative values can be inserted and a canvas will be generated, it is just + necessary to add a conversion from negative to positive values. + */ + function fillCheckerboard() { for (var i=0; i