
    colorPicker.click();
}

function limitInputLength(input, maxLength) {
        if (input.value.length > maxLength) {
            input.value = input.value.slice(0, maxLength);
        }
    }


// Function to set color based on the input color code
function setColor() {
    var colorCode = document.getElementById('color-code').value;
    var colorBox = document.getElementById('color-box');
    var brightnessValue = document.getElementById('color-slider').value;

    print(brightnessValue);
    
    // S