This commit is contained in:
DylanSpeiser 2024-07-03 15:18:56 -07:00
parent a6a705bfa1
commit ee9e7c39d7

View file

@ -544,12 +544,12 @@ function WBTInputHandler() {
// 0: lift, 1: gamma, 2: gain, 3: offset // 0: lift, 1: gamma, 2: gain, 3: offset
function setCCFromUI(which) { function setCCFromUI(which) {
if (which < 4) { if (which < 4) {
let lumaFloat = parseFloat(document.getElementsByClassName("CClumaLabel")[which].innerHTML); var lumaFloat = parseFloat(document.getElementsByClassName("CClumaLabel")[which].innerHTML);
let redFloat = parseFloat(document.getElementsByClassName("CCredLabel")[which].innerHTML); var redFloat = parseFloat(document.getElementsByClassName("CCredLabel")[which].innerHTML);
let greenFloat = parseFloat(document.getElementsByClassName("CCgreenLabel")[which].innerHTML); var greenFloat = parseFloat(document.getElementsByClassName("CCgreenLabel")[which].innerHTML);
let blueFloat = parseFloat(document.getElementsByClassName("CCblueLabel")[which].innerHTML); var blueFloat = parseFloat(document.getElementsByClassName("CCblueLabel")[which].innerHTML);
let ccobject = {"red": redFloat, "green": greenFloat, "blue": blueFloat, "luma": lumaFloat}; var ccobject = {"red": redFloat, "green": greenFloat, "blue": blueFloat, "luma": lumaFloat};
} }
if (which == 0) { if (which == 0) {