Dim startAngle = 170, sweepAngle = Value / GraphMaxValue * 201 As Float
Dim cColor As Int = xui.PaintOrColorToColor(CarrotColor)
bc.DrawArc2(cx, cy, radius, fullBrush, False, stroke, startAngle, 200)
If ShowScale = True Then
Dim sColor As Int = xui.PaintOrColorToColor(ScaleColor)
bc.DrawArc(cx, cy, radius - stroke, sColor, False, 8dip, 10 - 2, 2)
bc.DrawArc(cx, cy, radius - stroke, sColor, False, 8dip, 320 - 1, 2)
bc.DrawArc(cx, cy, radius - stroke, sColor, False, 8dip, 270 - 1 , 2)
bc.DrawArc(cx, cy, radius - stroke, sColor, False, 8dip, 220 - 1 , 2)
bc.DrawArc(cx, cy, radius - stroke, sColor, False, 8dip, 170, 2)
End If
bc.DrawArc(cx, cy, radius + 5, cColor, False, stroke + CarrotLength, startAngle - (CarrotWidth / 2) + sweepAngle , CarrotWidth)
If ShowCarrotGoal = True Then
Dim GoalsweepAngle = CarrotGoalValue / GraphMaxValue * 201 As Float
Dim cGColor As Int = xui.PaintOrColorToColor(CarrotGoalColor)
bc.DrawArc(cx, cy, radius + 5, cGColor, False, stroke + 5, startAngle - (CarrotGoalWidth / 2) + GoalsweepAngle , CarrotGoalWidth)
End If