module.paintArc broken
  • geoffmatters
    activ8 member
    Posts: 79
    Joined: Fri Sep 29, 2017 3:29 am

    module.paintArc broken

    by geoffmatters » Sun Jun 14, 2020 8:10 am

    It doesn't paint an arc like a pie chart.
    It paints a circle partly occluded by a line from the edge of the circle.
    Drawing an arc from 0 to 90 degrees should result in a quarter circle, with a right angle at the center.
    Instead it results in tiny slice of the edge of a circle.
    Sweeping the endAngle from 0 to 360 should fill it in like the hand of a clock sweeping from the center.
    Instead it reveals a circle as if sweeping from the 3 o'clock position on the edge of the circle.
  • geoffmatters
    activ8 member
    Posts: 79
    Joined: Fri Sep 29, 2017 3:29 am

    Re: module.paintArc broken

    by geoffmatters » Sun Jun 14, 2020 8:12 am

    See attached for what results from

    radius = 20
    startAngle = 0
    endAngle = 90
    module.paintArc('deckAView', 20, 20, radius, 0, 360, 1, 0, 0, 1)
    module.paintArc('deckAView', 20, 20, radius, startAngle, endAngle, 1, 1, 1, 1)
    Attachments
    Screen Shot 2020-06-14 at 3.08.35 PM.png
    Screen Shot 2020-06-14 at 3.08.35 PM.png (5.67 KiB) Viewed 4097 times

Who is online

Users browsing this forum: No registered users and 15 guests