Mark 1 год назад
Родитель
Сommit
99cd6b5ca3
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      10/крутилка/index.js

+ 1 - 1
10/крутилка/index.js

@@ -55,7 +55,7 @@ console.log(volumeControl.getValue())
 
 
 function setRGB() {
-   document.body.style.backgroundColor = `rgba(${red.getValue()},${green.getValue()},${blue.getValue()},1)`;
+   document.body.style.backgroundColor = `rgba(${red.getValue()},${green.getValue()},${blue.getValue()})`;
 }
 
 const red = new Control(container1, { min: 0, max: 255 })