Mercurial > code > home > repos > light9
changeset 1794:c97c0ac03597
ok to edit a color by value only
Ignore-this: fcda3510bf9c8bd49c3fb1cf92d5b3c4
author | Drew Perttula <drewp@bigasterisk.com> |
---|---|
date | Thu, 07 Jun 2018 23:04:26 +0000 |
parents | bf3b8f7a334e |
children | 499d5c6b153b |
files | light9/web/light9-color-picker.html |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/light9/web/light9-color-picker.html Thu Jun 07 23:04:01 2018 +0000 +++ b/light9/web/light9-color-picker.html Thu Jun 07 23:04:26 2018 +0000 @@ -253,6 +253,9 @@ document.body.removeChild(this.$.large); } onValue(value) { + if (this.hueSatColor === null) { + this.hueSatColor = '#ffffff'; + } let neverBlack = .1 + .9 * value / 255; this.$.smallRainbow.style.filter = `brightness(${neverBlack})`; }