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 numGrid = gridSlider.value;
|
||||
let sliderLabel = document.querySelector("#sliderLabel");
|
||||
//the next few variables test
|
||||
let isRgb;
|
||||
let isTint;
|
||||
let isShade;
|
||||
|
||||
buttons.forEach((button) => {
|
||||
button.addEventListener ("click", changeColor);
|
||||
|
|
@ -64,9 +67,6 @@ function changeColor() {
|
|||
}
|
||||
|
||||
switch (buttonID) {
|
||||
case "rgbColor":
|
||||
colorValue = rgbColor();
|
||||
break;
|
||||
case "whiteColor":
|
||||
colorValue = "white";
|
||||
break;
|
||||
|
|
|
|||
Loading…
Reference in a new issue