From b7522e05d50eed0ee9e8c5a07ff596c23aab2fe9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Erhan=20Ers=C3=B6z?= Date: Sat, 9 Jan 2021 20:38:16 +0300 Subject: [PATCH] Fix reset hue value Hello, I've fixed to reset hue value --- exercises/08 - Fun with HTML5 Canvas/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exercises/08 - Fun with HTML5 Canvas/index.html b/exercises/08 - Fun with HTML5 Canvas/index.html index 354589f..920e4bf 100644 --- a/exercises/08 - Fun with HTML5 Canvas/index.html +++ b/exercises/08 - Fun with HTML5 Canvas/index.html @@ -46,7 +46,7 @@ ctx.stroke(); // Draw the defined path on the canvas // Ternary operator to reset/increase hue value - hue >= 360 ? 0 : hue++; + hue >= 360 ? hue = 0 : hue++; // Ternary operator to increase/decrease line width increaseLineWidth ? ctx.lineWidth++ : ctx.lineWidth--;