I really like how you used tables unlike all the standardistas out there that think tables are "wrong." This colorpicker is the best I’ve seen so far.įor one thing, it used common variable names which step all over other libraries and my own code and is insanely CSS oriented, so trying to change its layout is a huge pain that’s basically hours of trial an error. The one thing that bothers me is the difficulty in writing a colorpicker that can "start" on any color. I foresee this as quite a task, maybe a fun challenge. For instance, you set you colorpicker to start on #FF0000 and you set the background to red as well. If I wanted it to start on a custom color, like one that was in a database for instance, maybe #0000FF, the color box would be correct but the background of the picker would be red, or maybe white. Basically, you’d need an algorithym to detect what each color’s background would be (the reverse of how it normally works). We don’t have the correct color in the slider. updateSliderVisuals The selected color differ from the color showed in the slider. setColorMode tAlpha(this._barL1, (vertPerRev>horzPerRev) ? horzPerRev : vertPerRev) įor( var i = 0, ni = a.length i horzPer) ? horzPer : vertPerRev) tAlpha(this._bar元, (vertPer>horzPer) ? horzPer : vertPer) tAlpha(this._barL4, (vertPer>horzPerRev) ? horzPerRev : vertPer) UPGRADE TO DO ( tested ) in "ColorPicker.js"įunction. Thanks for this: it’s nicely coded, and is saving me huge amounts of wheel reinvention.