Sub DrawCircle(drawerObject,x,y,r,color,fill)
rect.New1(x-r,y-r,2*r,2*r)
If fill Then
brush.Color = color
Control(drawerObject,Drawer).FillEllipse(brush.Value,rect.Value)
Else
pen.Color = color
Control(drawerObject,Drawer).DrawEllipse(pen.Value,rect.Value)
End If
Control(drawerObject,Drawer).Refresh2(rect.Value)
End Sub
Calling this sub:
DrawCircle ("drawer1",100,100,30,cRed,True)