From: Lyle J. <ly...@kn...> - 2004-05-04 02:23:33
|
On May 3, 2004, at 8:46 PM, Claus Spitzer wrote: > Greetings! Wow, a post from a GMail account! How glamorous ;) > Is there a way to use gradients with FXDC::FillRectangle? Are there > other ways of implementing gradients in FXRuby? I couldn't find > anything relevant in the api docs. FXDC fill styles don't mention it, > but I wonder how this is implemented in the color wheel, and if there > are methods other than FXDC to implement this. [You might also want to post this question to the foxgui-users mailing list, since it's not FXRuby-specific.] I'm pretty sure that the disk used for the FXColorWheel is an FXImage with dithering turned on, and that's what's creating the gradient-like effect. Other than that, I don't think there was much support for painting with gradients in FOX 1.0. FOX 1.2 (available sometime in the future) will have better support for this, I think, but that's still a ways off, I think. |