dataarts / dat.gui

Lightweight controller library for JavaScript.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can't change color manually?

CodilX opened this issue · comments

I'm using the color picker, but I seem to not be able to enter the color manually? I tried various different formatting styles but every time I press Enter - the value reverts to the way it was before.

Is this a bug/feature? I'd like to have the option to manually enter color values when needed AND use the color picker, not be stuck with just the color picker.

Edit: Manually editing seems to work the CSS formatting, but doesn't work with hex

commented

Try initializing the colors with a CSS style value such as: #FF00FF

I had a similar problem where my color values where displayed with hex notation; e.g., 0xFF00FF. Unfortunately, that format isn't yet supported during the parsing phase.

Edit: Overlooked your Edit indicating the CSS style worked for you.