code: def ColorWithHue(self, hue):
      '''Create a new instance based on this one with a new hue.
  
      Parameters:
        :hue:
          The hue of the new color [0...360].
  
      Returns:
        A grapefruit.Color instance.
  
      >>> Color.NewFromHsl(30, 1, 0.5).ColorWithHue(60)
      (1.0, 1.0, 0.0, 1.0)
      >>> Color.NewFromHsl(30, 1, 0.5).ColorWithHue(60).hsl
      (60, 1, 0.5)
  
      '''
      h, s, l = self.__hsl
      return Color((hue, s, l), 'hsl', self.__a, self.__wreff ColorWithHue(self, hue):
      '''Create a new instance based on this one with a new hue.
  
      Parameters:
        :hue:
          The hue of the new color [0...360].
  
      Returns:
        A grapefruit.Color instance.
  
      >>> Color.NewFromHsl(30, 1, 0.5).ColorWithHue(60)
      (1.0, 1.0, 0.0, 1.0)
      >>> Color.NewFromHsl(30, 1, 0.5).ColorWithHue(60).hsl
      (60, 1, 0.5)
  
      '''
      h, s, l = self.__hsl
      return Color((hue, s, l), 'hsl', self.__a, self.__wref)
docs: Create a new instance based on this one with a new hue.
  
      Parameters:
        :hue:
          The hue of the new color [0...360].
  
      Returns:
        A grapefruit.Color instance.
  
      >>> Color.NewFromHsl(30, 1, 0.5).ColorWithHue(60)
      (1.0, 1.0, 0.0, 1.0)
      >>> Color.NewFromHsl(30, 1, 0.5).ColorWithHue(60).hsl
      (60, 1, 0.5)