Radial gradient used as a Stroke

Alexander Kouznetsov alexander.kouznetsov at oracle.com
Fri May 4 14:38:13 PDT 2012

Hi Jiri,

Radial gradient has its center. By default it is 0, 0. Circle also has 
its center which is not 0, 0 most of the time. So the gradient is not 
following the circle. You can fix that by set circle center to 0, 0, 
while changing its translateX and translateY values. Please let me know 
if it resolved your problem.

Best regards,
Alexander Kouznetsov

On 04.05.2012 22:18, goddard at seznam.cz wrote:
> Hello,
> I've got this piece of code https://github.com/g0dd4rd/TKE/blob/master/src/tke/Encounter.java where I use Circle as a clip for Rectangle to see the background. The Circle has a Stroke, but this Stroke is not shown when used with a clip.
> Does it work as designed?
> My goal is to use RadialGradient as a Stroke. I haven't found an issue for it for JIRA, so I'm asking here.
> Regards, Jiri

More information about the openjfx-dev mailing list