Open kswang1029 opened 1 year ago
Good question. I would be inclined to allow any value if any value is actually accepted -- there are some other cases in which we allow the user to do something that is not exposed in the GUI, for example if something can be an arbitrary HTML colour the GUI doesn't allow transparency in the picker, but we can set an RGBA value through the scripting UI and I think that's fine.
Are bias / contrast values outside these ranges invalid, or are they just not "sensible"?
The GUI limits bias in [-1, +1] and contrast in [0, +2]. Shall we also validate the range too? The frontend actually can accept values outside those ranges though.