Drawing an Arc problem...
-
I'm having a problem when trying to draw an arc. anything below about 160 degrees starts getting squashed and wonky. Need some help with figuring out what i'm doing wrong here....
function drawArc() { var a = [0, 0, 64, 64]; var p = Content.createPath(); p.startNewSubPath(0, 0); p.addArc(a, degToRad(0), degToRad(160)); var pathData = {}; pathData.Thickness = 2.0; pathData.StrokeType = "Solid"; g.setColour(accentColor); g.drawPath(p, a, pathData); } function degToRad(deg) { return deg * (Math.PI / 180); }45 Degrees:

160 Degrees:
