code: def complement(color):
      r
      (r, g, b) = parse_color(color)
      gcolor = grapefruit.Color((r / 255.0, g / 255.0, b / 255.0))
      complement = gcolor.ComplementaryColor()
      (r, g, b) = [int(c * 255.0) for c in complement.rgb]
      return (r, g, b)
docs: r"""Calculates polar opposite of color
  
      This isn't guaranteed to look good >_> (especially with brighter, higher
      intensity colors.) This will be replaced with a formula that produces
      better looking colors in the future.
  
      >>> complement('red')
      (0, 255, 76)
      >>> complement((0, 100, 175))
      (175, 101, 0)