#NEWLINE# def add_skin_for_skeleton( self , skeleton , color , z = ( - 1 ) , editable = False ) : #NEWLINE# #INDENT# if self . user_skin : #NEWLINE# #INDENT# skin = BitmapSkin ( skeleton , self . user_skin , alpha = color [ 3 ] ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# skin = ColorSkin ( skeleton , color ) #NEWLINE# #UNINDENT# self . skin = skin #NEWLINE# self . add ( skin , z = z ) #NEWLINE# ( xs , ys ) = director . get_window_size ( ) #NEWLINE# skin . position = ( ( ( xs / 2 ) - 6 ) , ( ( ys / 2 ) - 11 ) ) #NEWLINE# if editable : #NEWLINE# #INDENT# self . editable_skeleton = skeleton #NEWLINE# self . editable_skin = z #NEWLINE# self . generate_control_points ( )