Athens and radial gradient

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Athens and radial gradient

Matthieu
Hello,

I wanted to use Athens API to define a radial gradient and I saw that the class RadialGradientPaint only had one radius as instance variable and it seemed to me it was passed as the end radius while the start radius was set to 0.
Does it mean that if I want to define a start radius different from 0 I need to call the backend directly ?

Thanks,

Matthieu
Reply | Threaded
Open this post in threaded view
|

Re: Athens and radial gradient

Nicolai Hess


2015-06-18 14:49 GMT+02:00 Matthieu Lacaton <[hidden email]>:
Hello,

I wanted to use Athens API to define a radial gradient and I saw that the class RadialGradientPaint only had one radius as instance variable and it seemed to me it was passed as the end radius while the start radius was set to 0.
Does it mean that if I want to define a start radius different from 0 I need to call the backend directly ?

Well, that is the Athens API, it may happen of course, that a one backend (for example - AthensCairo) could supports more arguments. Maybe the
API was choosen that way, because this is the API that can be implemented by Balloon and Cairo.
(of course, this isn't really important because all users of this library explicit work with the AthensCairoSurface the backend,
and to me, it looks no one cares).

 

Thanks,

Matthieu