Style slider
This commit is contained in:
parent
724133e243
commit
a347c31fb7
3 changed files with 46 additions and 4 deletions
|
|
@ -57,6 +57,7 @@ function resetGrid() {
|
|||
colorValue = "black";
|
||||
rangeKnob.style.transform = `rotate(${gridSlider.value}deg)`;
|
||||
transSlider.value = 1;
|
||||
//transSlider.style.backgroundColor = "rgb(180, 254, 235)";
|
||||
transLabel.textContent = transSlider.value
|
||||
|
||||
getGridDimensions();
|
||||
|
|
@ -160,8 +161,10 @@ function pickBackground() {
|
|||
b = num2[2];
|
||||
a = num[3]+ "."+ num[4];
|
||||
container.style.backgroundColor = `rgba(${r},${g},${b},${a})`;
|
||||
//transSlider.style.backgroundColor = `rgba(${r},${g},${b},${a})`;
|
||||
} else {
|
||||
container.style.backgroundColor = backColorPicker.value;
|
||||
//transSlider.style.backgroundColor = backColorPicker.value;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -195,6 +198,7 @@ function adjustTransparency() {
|
|||
|
||||
transLabel.textContent = a;
|
||||
container.style.backgroundColor = `rgba(${r},${g},${b},${a})`;
|
||||
//transSlider.style.backgroundColor = `rgba(${r},${g},${b},${a})`;
|
||||
}
|
||||
|
||||
function colorGrid() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue