# HG changeset patch # User drewp@bigasterisk.com # Date 1685391674 25200 # Node ID cd4a9eeeb9e6b3cc76d57a07c5ead79e9bfc7cce # Parent 094e6b84b291041f25d5a414430343fd1f426fe4 special case- white picks the center-top px diff -r 094e6b84b291 -r cd4a9eeeb9e6 light9/web/floating_color_picker.ts --- a/light9/web/floating_color_picker.ts Mon May 29 13:20:46 2023 -0700 +++ b/light9/web/floating_color_picker.ts Mon May 29 13:21:14 2023 -0700 @@ -82,6 +82,11 @@ throw new Error("no match"); } + log("col", col); + if (col == "#ffffff") { + return new RainbowCoord(400 / 2, 0); + } + let bright = color(col).value(1).hex(); let r = parseInt(bright.slice(1, 3), 16), g = parseInt(bright.slice(3, 5), 16),