lineWidth _ 2.
startAngle _ 0.
stopAngle _ Float pi * 1.3.
self color: Color yellow.
self extent: 200@200.! !
On 4/3/17 2:23 PM, tim Rowledge wrote:
I’m trying to find a nice way to do circular arc morphs; so far CurveMorph isn’t playing very nice for this and google is not finding anything that looks interesting.
Has anyone seen suitable code, or is anyone in possession of the Seekrit Knowledge of how to make CurveMorph do clean circular arcs?
tim Rowledge; [hidden email]; http://www.rowledge.org/tim
For every action, there is an equal and opposite criticism.
> On 03-04-2017, at 1:32 PM, karl ramberg <[hidden email]> wrote:
> Etoys image has a SectorMorph
> Not sure if it is in trunk
It seems to be there and functioning in the latest Squeak6.0alpha-17086-32bit. It is not especially helpful when needing an arbitrary arc, though, since various methods seem to rely upon the first vertex in the list being the centre of the radius. And it draws a really ugly curved edge too.
There’s also the old Arc class that I hadn’t spotted (because I looked for “arcm” thinking to find ArcMorph) but that doesn’t help a great deal without translating to morphland. And anyway we really ought to be able to do good curves by now. Yes, we have the B2Dplugin and BalloonCanvas but it’s not all that convincing; try `WatchMorph new openInWorld` and then use its red menu to turn on anti-aliasing. A bit naff.