En visual Basic
Espero y te ayude... saludos
Código (vb) [Seleccionar]
'X y Y el centro, RX el radio en X, RY el radio en Y, IA angulo inicial, FA angulo final
Sub cCircle(ByVal X As Integer, ByVal Y As Integer, ByVal RX As Integer, ByVal RY As Integer, ByVal IA As Integer, ByVal FA As Integer)
pi = 3.141654
For I = FA To IA Step -1
aux = 2 * pi * (I / 360)
Me.PSet (X + RX * Sin(aux), Y - RY * Cos(aux))
Next
End Sub
Espero y te ayude... saludos
