GameDemon Posted September 4, 2015 Share Posted September 4, 2015 Hello, I'm trying to draw a pie-chart like circle with a wedge missing - it's for an elapsing clock/timer. I want the missing wedge to start at 12 o'clock and move to the right. The following code seems to be what I need:gfk.arc(0, 0, 128, game.math.degToRad(270), // starts at 12 o'clock game.math.degToRad(270-360), // ends at 12 o'clock true // anti-clockwise);This should draw a complete circle - but it's a few degrees off: Here's a live demo:https://output.jsbin.com/rusejeIf I turn off the arc reverse-draw argument and draw in opposite direction, it works fine, but I need it in reverse. Why does this happen, and how can I draw the shape I want? Thanks in advance! Link to comment Share on other sites More sharing options...
icp Posted September 4, 2015 Share Posted September 4, 2015 Take a look here: http://phaser.io/examples/v2/display/arc-details . Link to comment Share on other sites More sharing options...
GameDemon Posted September 4, 2015 Author Share Posted September 4, 2015 Thanks icp, that's a great demo for my problem, the arc on the right should close up to make a full circle, but it never does - there's always a gap. But I still don't understand why this is happening and how to avoid it? Link to comment Share on other sites More sharing options...
tips4design Posted September 5, 2015 Share Posted September 5, 2015 Are you using WebGL? Try using Canvas renderer Link to comment Share on other sites More sharing options...
GameDemon Posted September 5, 2015 Author Share Posted September 5, 2015 Thanks Tips! My own demo is Phaser.AUTO, the official arc demo that ICP posted is Phaser.CANVAS. It's the same problem both times for me, the endpoints of the anticlockwise arc do not meet up. Link to comment Share on other sites More sharing options...
GameDemon Posted September 7, 2015 Author Share Posted September 7, 2015 Can anyone confirm that they're seeing the same thing as me in the demos -- which is that the anticlockwise arc is not being drawn from 12 o'clock? If so I'll file this as a bug... :-( Link to comment Share on other sites More sharing options...
Skeptron Posted September 7, 2015 Share Posted September 7, 2015 I do confirm I see exactly what you screenshot (the not-complete-circle). Using Chrome on Mac. Link to comment Share on other sites More sharing options...
GameDemon Posted September 7, 2015 Author Share Posted September 7, 2015 Thx for the confirm skeptron, wow scary avatar! Issue created here:https://github.com/photonstorm/phaser/issues/2064 Link to comment Share on other sites More sharing options...
Skeptron Posted September 7, 2015 Share Posted September 7, 2015 It's not really scary, it's just a masterpiece from concept artist Johnson Ting (http://conceptartworld.com/?p=40390) Good luck with your bug, hope it will be fixed soon! Do not hesitate to fork and submit a fix if you feel like you can fix it. It really speeds up the process! Link to comment Share on other sites More sharing options...
drhayes Posted September 8, 2015 Share Posted September 8, 2015 No, definitely scary. Link to comment Share on other sites More sharing options...
Recommended Posts