# HG changeset patch # User Drew Perttula # Date 1528412666 0 # Node ID c97c0ac03597a3d5afb515112e869ce13690c793 # Parent bf3b8f7a334e4aa5885afdc2d95d00ad70ddc85f ok to edit a color by value only Ignore-this: fcda3510bf9c8bd49c3fb1cf92d5b3c4 diff -r bf3b8f7a334e -r c97c0ac03597 light9/web/light9-color-picker.html --- 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})`; }