Browse Source

<HW_Func_OOP+rgb> done

Mark 1 year ago
parent
commit
99cd6b5ca3
1 changed files with 1 additions and 1 deletions
  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 })