<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <p><font face="Georgia">Something like this, maybe?</font></p>
    <p><font face="Georgia">'From Squeak5.1 of 23 August 2016 [latest
        update: #16548] on 3 April 2017 at 3:24:01 pm'!<br>
        Morph subclass: #BobsArcMorph<br>
            instanceVariableNames: 'lineWidth startAngle stopAngle'<br>
            classVariableNames: ''<br>
            poolDictionaries: ''<br>
            category: 'MorphicExtras-AdditionalMorphs'!<br>
        <br>
        !BobsArcMorph methodsFor: 'as yet unclassified' stamp: 'raa
        4/3/2017 15:22'!<br>
        drawOn: aCanvas<br>
        "<br>
         BobsArcMorph new openInWorld<br>
        "<br>
            | center radius angle pt lw2 stop step |<br>
            <br>
            aCanvas fillRectangle: self bounds color: Color gray.<br>
            lw2 _ lineWidth // 2.<br>
            center _ self bounds center - (lw2@lw2).<br>
            radius _ (self width min: self height) // 2 - lw2.<br>
            angle _ startAngle min: stopAngle.<br>
            stop _ (startAngle max: stopAngle) min: angle + Float twoPi.<br>
            step _ 0.9 / radius.<br>
            [<br>
                pt _ center + (Point r: radius degrees: angle
        radiansToDegrees) rounded.<br>
                aCanvas fillRectangle: (pt extent: lineWidth@lineWidth)
        color: color.<br>
                angle _ angle + step.<br>
                angle > stop<br>
            ] whileFalse! !<br>
        <br>
        !BobsArcMorph methodsFor: 'as yet unclassified' stamp: 'raa
        4/3/2017 15:23'!<br>
        initialize<br>
        <br>
            super initialize.<br>
            lineWidth _ 2.<br>
            startAngle _ 0.<br>
            stopAngle _ Float pi * 1.3.<br>
            self color: Color yellow.<br>
            self extent: 200@200.! !<br>
      </font><br>
    </p>
    <br>
    <div class="moz-cite-prefix">On 4/3/17 2:23 PM, tim Rowledge wrote:<br>
    </div>
    <blockquote
      cite="mid:0DEFEA71-9413-4998-8890-E86D28B1D409@rowledge.org"
      type="cite">
      <pre wrap="">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
--
tim Rowledge; <a class="moz-txt-link-abbreviated" href="mailto:tim@rowledge.org">tim@rowledge.org</a>; <a class="moz-txt-link-freetext" href="http://www.rowledge.org/tim">http://www.rowledge.org/tim</a>
For every action, there is an equal and opposite criticism.



</pre>
    </blockquote>
    <br>
  </body>
</html>