code: def change_color(color):
      
      rep = current_representation()
      
      # Let's parse the color first
      if isinstance(color, str):
          # The color should be a string
          col = color_from_string(color)
  
      if isinstance(color, tuple):
          col = color
          
      if color is None:
          col = None
  
      # Color array
      rep.change_color(rep.selection_state, col)
docs: Change the color of the currently selected objects. *color* is
      represented as a string. Otherwise color can be passed as an rgba
      tuple of values between 0, 255
  
      Reset the color by passing *color=None*.
      
      You can call this function interactively by using::
  
          change_color.interactive()
      
      A new dialog will popup with a color chooser.