Native functions for drawing Arc

Posted on
  • Is it possible to have an ability to draw or fill an arc for espruino devices with display (BangleJS/PixelJs).

    A native method with parameters : Start Angle, Sweep Angle, X, Y coordinate and radius.

    Espruino already have native functions for circle and ellipse that can be use to draw an arc. Just a thought!!

  • Take a look into this collection of ideas at Enhancement for Graphics #1702

  • At the moment there is nothing built in, but it's pretty easy to do by creating a polyline for the arc segment you want and passing that into fillPoly/drawPoly

  • Waiting for my bangle, I've created some special charts.
    Thanks to MaBe I know its working on Bangle.
    Inside PIE and other charts, there is a Q&U solution for arc used.
    https://github.com/jumjum123/Bangle/blobĀ­/master/modules/BangleChart.js

  • Excellent work @JumJum. I really enjoyed a lot you work. Chart looks amazing :)

  • Its my pleisure :-)

  • Post a reply
    • Bold
    • Italics
    • Link
    • Image
    • List
    • Quote
    • code
    • Preview
About

Native functions for drawing Arc

Posted by Avatar for Abhigkar @Abhigkar

Actions