intensity2 = function makeSliderWithValue(name, inputMin, inputMax, inputStep, initialValue, units) {
const div = html`<input type=range min=${inputMin} max=${inputMax} step=${inputStep} style="width:75%"> <code style="color:"#686963";">${name}:</code> <strong><output></output></strong> ${units}`;
const range = div.querySelector("[type=range]");
const number = div.querySelector("output");
div.value = range.value = initialValue;
number.textContent = initialValue;
range.addEventListener("input", () => number.textContent = div.value = range.valueAsNumber);
return div;
}