#NEWLINE# def ellipse( self , pt , xr , yr , theta , pen , brush ) : #NEWLINE# #INDENT# ( x , y ) = pt #NEWLINE# if ( ( brush is not None ) and brush . fill ) : #NEWLINE# #INDENT# cv2 . ellipse ( self . canvas , ( x , y ) , ( xr , yr ) , theta , 0.0 , 360.0 , brush . color , ( - 1 ) ) #NEWLINE# #UNINDENT# cv2 . ellipse ( self . canvas , ( x , y ) , ( xr , yr ) , theta , 0.0 , 360.0 , pen . color , pen . linewidth )