How to draw quarter of circle?

701 views
Skip to first unread message

tomaz....@gmail.com

unread,
Apr 1, 2013, 8:16:08 AM4/1/13
to pap...@googlegroups.com

Hi!

Help me, please. I would like to draw quarter of circle like on image below (just curve 1, without 2 and 3).

I tried with Circle and removing segments, but it didn't work.

How can this be done?

Regards, Tomaž



philip wasserman

unread,
Apr 1, 2013, 3:39:24 PM4/1/13
to pap...@googlegroups.com
Hi
 
Sample code for creating arc: will need start point, end point, through point
 
    var startPoint = new paper.Point(Arc.StartPoint.X, (Arc.StartPoint.Y ));
    var midPoint = new paper.Point(Arc.MidPoint.X, (Arc.MidPoint.Y));
    var endPoint = new paper.Point(Arc.EndPoint.X, (Arc.EndPoint.Y));

    var pathArc = new paper.Path.Arc(startPoint, midPoint, endPoint);
 
 
Hope this helps
 
Philip

tomaz....@gmail.com

unread,
Apr 2, 2013, 12:23:54 PM4/2/13
to pap...@googlegroups.com
Thank you Philip! Exactly what I was looking for.

Regards,
Tomaž

Dne ponedeljek, 01. april 2013 21:39:24 UTC+2 je oseba philip wasserman napisala:
Reply all
Reply to author
Forward
0 new messages