From e4185624e36e884a42b3cce49483d087a803284d Mon Sep 17 00:00:00 2001 From: "s.litvin" Date: Thu, 17 Sep 2020 23:33:16 +0300 Subject: [PATCH] Garbage removed --- sketch.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sketch.js b/sketch.js index de64e4f..16e7919 100644 --- a/sketch.js +++ b/sketch.js @@ -230,7 +230,7 @@ class Cam { function spriteFill(color, pos_x, _height) { - color = (Math.floor(color*16/255) + 1) * 16; + color = Math.floor(color*16/255) * 16; _height = Math.floor((400 - _height) / 2); image(pg, pos_x, 0, 10, 400 - _height, color, 0, 10, 400 - _height);