I'm porting Skycons to Android and I've got most of them working, except the moon uses HTML5's Canvas.arc with the counterclockwise argument.

I've tried to implement this like so:

RectF rect = new RectF(); public void arcR( Path path, float x, float y, float radius, double startAngle, double endAngle, boolean anticlockwise ){ // Set bounds rect.set( x - radius, y - radius, x + radius, y + radius ); // Convert to degrees startAngle = Math.toDegrees(startAngle); endAngle = Math.toDegrees(endAngle); if(anticlockwise){ startAngle = 360 - startAngle; endAngle = 360 - endAngle; } endAngle = endAngle - startAngle; path.addArc(rect, (float)startAngle, (float)endAngle); }

I don't think I've implemented counterclockwise correctly, as on my device drawing the moon (based on Skycons) looks like this: