#NEWLINE# def _draw_poly( surface , poly ) : #NEWLINE# #INDENT# ps = poly . get_vertices ( ) #NEWLINE# ps = [ to_pygame ( ps , surface ) for p in ps ] #NEWLINE# ps += [ ps [ 0 ] ] #NEWLINE# if hasattr ( poly , 'color' ) : #NEWLINE# #INDENT# color = poly . color #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if poly . body . is_static : #NEWLINE# #INDENT# color = pygame . color . THECOLORS [ 'lightgrey' ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# color = pygame . color . THECOLORS [ 'green' ] #NEWLINE# #UNINDENT# #UNINDENT# pygame . draw . lines ( surface , color , False , ps , max ( int ( ( poly . radius * 2 ) ) , 1 ) )