Created https://javafx-jira.kenai.com/browse/RT-38316.
Thanks for your response and workaround. It's a bit complex doing that instead of applying the gradient, at least for now due to my architecture, but nice to know that I have options. On Fri, Aug 15, 2014 at 6:19 AM, Jim Graham <[email protected]> wrote: > I could have sworn there was a bug for this, but I can't find it. You > should submit one so that we can track the request. > > In the meantime, you could apply your trick to any shape by setting that > shape as the clip on the proportionally distorted rectangle... > > ...jim > > > On 8/13/14 4:38 PM, Edu García wrote: > >> Hi, >> >> Is there a way of create an elliptical gradient? The only way I've found >> is >> creating a RadialGradient with proportional set as true, and then apply >> that to a rectangle of the proportions I want. But obviously, that's not >> very useful if I want to apply it to any shape. >> >> If there is no way and this was just an oversight, will it be possible to >> have a RadialGradient constructor with two points and two radii to cover >> all the possible cases, like PDF has? We can always adapt the other >> constructor using the focus angle and length to map to this two points >> internally, and I'm assuming we do something similar when converting >> inside >> Prism (or any of the related subsystems, sorry, I don't know any of the >> JFX >> internals yet :D) >> >>
