docs: def order_by_hue(colors):
      """
      Orders colors by hue.
      """
      hsvs = [rgb_to_hsv(*map(down_scale, color)) for color in colors]
      hsvs.sort(key=lambda t: t[0])
      return [tuple(map(up_scale, hsv_to_rgb(*hsv))) for hsv in hsvs]