On Tue, 3 Mar 2026 16:35:53 GMT, Michael Strauß <[email protected]> wrote:

> > Perhaps return an object right away instead of the int? Is there any reason 
> > why we can't return a `Color` and get it ASAP to FX's domain objects?
> 
> Return a `Color` from where, instead of doing what?

I made the wrong assumption, because you said you can't use any `int` value as 
"error", so I assumed you need the entire int range and that would mean 32-bits 
which can hold RGBA = Color.

However, looking at it, I don't see any real place where you need the full int 
range. It seems to be parsing two (hex) digits at most, or something that gets 
put in a double. One of those is degrees, which could be anything I suppose as 
they get modded. But why would that cut off at 2147483647 (or -2147483648) and 
not something else arbitrary?  I see no reason why we can't use a special int 
value here (as the supported range is already arbitrary), or just parse it as 
`double` right away.

-------------

PR Comment: https://git.openjdk.org/jfx/pull/2093#issuecomment-3992925957

Reply via email to