whoopsy
This commit is contained in:
parent
850777c723
commit
8848567796
1 changed files with 8 additions and 6 deletions
14
web-ui.js
14
web-ui.js
|
|
@ -543,12 +543,14 @@ function WBTInputHandler() {
|
||||||
|
|
||||||
// 0: lift, 1: gamma, 2: gain, 3: offset
|
// 0: lift, 1: gamma, 2: gain, 3: offset
|
||||||
function setCCFromUI(which) {
|
function setCCFromUI(which) {
|
||||||
let lumaFloat = parseFloat(document.getElementsByClassName("CClumaLabel")[which].innerHTML);
|
if (which < 4) {
|
||||||
let redFloat = parseFloat(document.getElementsByClassName("CCredLabel")[which].innerHTML);
|
let lumaFloat = parseFloat(document.getElementsByClassName("CClumaLabel")[which].innerHTML);
|
||||||
let greenFloat = parseFloat(document.getElementsByClassName("CCgreenLabel")[which].innerHTML);
|
let redFloat = parseFloat(document.getElementsByClassName("CCredLabel")[which].innerHTML);
|
||||||
let blueFloat = parseFloat(document.getElementsByClassName("CCblueLabel")[which].innerHTML);
|
let greenFloat = parseFloat(document.getElementsByClassName("CCgreenLabel")[which].innerHTML);
|
||||||
|
let blueFloat = parseFloat(document.getElementsByClassName("CCblueLabel")[which].innerHTML);
|
||||||
let ccobject = {"red": redFloat, "green": greenFloat, "blue": blueFloat, "luma": lumaFloat};
|
|
||||||
|
let ccobject = {"red": redFloat, "green": greenFloat, "blue": blueFloat, "luma": lumaFloat};
|
||||||
|
}
|
||||||
|
|
||||||
if (which == 0) {
|
if (which == 0) {
|
||||||
cameras[ci].PUTdata("/colorCorrection/lift", ccobject);
|
cameras[ci].PUTdata("/colorCorrection/lift", ccobject);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue