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.

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
Post a Comment