You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm having a little difficulty figuring out how to retrieve the RGB component values of a color picker. When I use the following code, the value of the comps_ array in my value var always seems to be in HSV:
Where parameterValues.gradientColors.color1RGB = {r:255, g:0, b:0}.
In issue #18 I see that support was added in release 1.2.0 for different output formats based on an input config variable, but for me the mode stays as hsv when I use input: 'color.rgb' (shown below). Is there maybe something small that I'm missing?
Which version of Tweakpane do you use? I released the latest version 1.3.4 yesterday and it fixes a bug about type-mismatching of the first argument of event handlers. Please update the library if you use an old one.
A-ha! I was using 1.3.3, and I just updated my packages (I'm using npm) and now its working. It even works when I leave out the explicit input config option, so I assume that the initial format of the parameter drives the output format now. Very nice!
I'm having a little difficulty figuring out how to retrieve the RGB component values of a color picker. When I use the following code, the value of the
comps_
array in myvalue
var always seems to be in HSV:Where
parameterValues.gradientColors.color1RGB = {r:255, g:0, b:0}
.In issue #18 I see that support was added in release 1.2.0 for different output formats based on an
input
config variable, but for me themode
stays ashsv
when I useinput: 'color.rgb'
(shown below). Is there maybe something small that I'm missing?Result:
(btw, loving this library so far! You've done an epic job with the architecture of this thing!)
The text was updated successfully, but these errors were encountered: