From 99aebf351d639a615fa989855a1993013f09c40e Mon Sep 17 00:00:00 2001 From: Syndamia Date: Sun, 13 Nov 2022 17:32:04 +0200 Subject: [WGL/H05] Post-submission fix for lack of yellow plates --- .../Computer Graphics with WebGL/Homework 05 - The cube/Homework.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Year 2/Computer Graphics with WebGL/Homework 05 - The cube/Homework.html b/Year 2/Computer Graphics with WebGL/Homework 05 - The cube/Homework.html index 963a4df..290d49e 100644 --- a/Year 2/Computer Graphics with WebGL/Homework 05 - The cube/Homework.html +++ b/Year 2/Computer Graphics with WebGL/Homework 05 - The cube/Homework.html @@ -110,8 +110,8 @@ for (var i = 1; i < 30; i++) { if (i % 10 === 0) i++; - c.push(new CubePlate( i, POSSIBLE_COLORS[Math.floor(random(0,5))], CUBE_COLOR)); - c.push(new CubePlate(-i, POSSIBLE_COLORS[Math.floor(random(0,5))], CUBE_COLOR)); + c.push(new CubePlate( i, POSSIBLE_COLORS[Math.floor(random(0,5.9))], CUBE_COLOR)); + c.push(new CubePlate(-i, POSSIBLE_COLORS[Math.floor(random(0,5.9))], CUBE_COLOR)); } } -- cgit v1.3.1-26-gb76a