Remove rgb case from changeColor
This commit is contained in:
parent
50a87783b6
commit
fbe4096bae
1 changed files with 3 additions and 3 deletions
|
|
@ -7,7 +7,10 @@ const buttons = document.querySelectorAll("button");
|
||||||
let colorValue = "black";
|
let colorValue = "black";
|
||||||
let numGrid = gridSlider.value;
|
let numGrid = gridSlider.value;
|
||||||
let sliderLabel = document.querySelector("#sliderLabel");
|
let sliderLabel = document.querySelector("#sliderLabel");
|
||||||
|
//the next few variables test
|
||||||
let isRgb;
|
let isRgb;
|
||||||
|
let isTint;
|
||||||
|
let isShade;
|
||||||
|
|
||||||
buttons.forEach((button) => {
|
buttons.forEach((button) => {
|
||||||
button.addEventListener ("click", changeColor);
|
button.addEventListener ("click", changeColor);
|
||||||
|
|
@ -64,9 +67,6 @@ function changeColor() {
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (buttonID) {
|
switch (buttonID) {
|
||||||
case "rgbColor":
|
|
||||||
colorValue = rgbColor();
|
|
||||||
break;
|
|
||||||
case "whiteColor":
|
case "whiteColor":
|
||||||
colorValue = "white";
|
colorValue = "white";
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue