From afdb3779842304287755ddb96508a170379961d9 Mon Sep 17 00:00:00 2001 From: Chander Date: Mon, 19 Aug 2019 17:46:28 +0530 Subject: [PATCH] snake color changed --- snake.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/snake.html b/snake.html index 512dc99..ea646e6 100644 --- a/snake.html +++ b/snake.html @@ -94,11 +94,11 @@ } // draw apple - context.fillStyle = 'blue'; + context.fillStyle = 'white'; context.fillRect(apple.x, apple.y, grid-1, grid-1); // draw snake one cell at a time - context.fillStyle = 'red'; + context.fillStyle = 'green'; snake.cells.forEach(function(cell, index) { // drawing 1 px smaller than the grid creates a grid effect in the snake body so you can see how long it is