Elliptical gradient

Jim Graham james.graham at oracle.com
Thu Aug 14 20:19:20 UTC 2014


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)
>


More information about the openjfx-dev mailing list