Grow your CSS skills. Land your dream job.

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

  • # July 19, 2013 at 10:23 pm

    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

    # July 19, 2013 at 10:24 pm

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

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".