Indeed. For the drop shadow I am sneakily using the RoundedBorder (part of Polymorph) for the bottom-right corner when that corner is rounded for a window. No antialisaing, of course, but looks ok-ish... Regards, Gary ----- Original Message ----- From: "Igor Stasenko" <siguctua@gmail.com> To: <Pharo-project@lists.gforge.inria.fr> Sent: Tuesday, February 10, 2009 2:43 PM Subject: Re: [Pharo-project] Call for UI gripes
2009/2/10 Gary Chambers <gazzaguru2@btinternet.com>:
Rounded things are tricky to do with no direct support in canvas/balloon.
I did some experimenting to draw a rounded rects using balloon bezier curves.. I was disappointed in speed :(
Moreover, if border is drawn w/o antialiasing, it looks very ugly and inaccurate.
Also, balloon using different bordering logic. It does not insets border inside a shape's area, instead it using a shape segment as a guide to draw a border around it , i.e. if you drawing a horizontal line at y=0 with border width = 3, then border will fill y=-1, y=0 , y=1 .
You can look a results on attached images. A code used to draw them: (RoundedRectShape new rect: (10@10 corner: 100@100)) drawOn: World assuredCanvas
-- Best regards, Igor Stasenko AKA sig.
--------------------------------------------------------------------------------
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project