Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript How to draw portion of pie image using canvas or Wedge shape in kinetic with touch event on iPad

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #46554
    ne7ven
    Participant

    I use canvas or maybe Wedge shape in kinetic framework to load 2 circle image, 1 for image background, 1 for image percentage of pie.
    I bind touchstart, touchmove, touchend event for canvas container. Then i face 2 problem :
    first thing how to use canvas load a portion of circle image. For example : just load 1/4 of image circle.
    second thing is how to calculate portion of pie based on point of touch, when we touch down and move finger percentage of pie will increase and decrease as well.

    please give me some suggestion or example. thanks in advance

    #143596
    ne7ven
    Participant

    sorry, i posted in wrong place. I moved it to Javascript jungle. Sorry about this .

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.