javascript - Canvas - Circle pie shape for preloader -


what i'm trying done in example shown below pie shape preloader script. deal starts on 0% , finishes on 100%. depending on % given circle behind gray circle shall fill self up.

currently have shapes in 2 different canvas's had use clip hide parts of circle. applied overlay gray circle spliced them up. way both images.

preloader

i appreciate effort guys put in helping me. been trying solve issue ages.

found solution. seems had use moveto function in order shape painted correctly.

using the

function degreestoradians(degrees) {     return (degrees * math.pi)/180; } 

function use degrees rather radians.

-

hope helps else :)


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -