code: def RgbToHtml(r, g, b):
      '''Convert the color from (r, g, b) to #RRGGBB.
  
      Parameters:
        :r:
          The Red component value [0...1]
        :g:
          The Green component value [0...1]
        :b:
          The Blue component value [0...1]
  
      Returns:
        A CSS string representation of this color (#RRGGBB).
  
      >>> Color.RgbToHtml(1, 0.5, 0)
      '#ff8000'
  
      '''
      return '#%02x%02x%02x' % tuple((min(round(v*255), 255) for v in (r, g, b))f RgbToHtml(r, g, b):
      '''Convert the color from (r, g, b) to #RRGGBB.
  
      Parameters:
        :r:
          The Red component value [0...1]
        :g:
          The Green component value [0...1]
        :b:
          The Blue component value [0...1]
  
      Returns:
        A CSS string representation of this color (#RRGGBB).
  
      >>> Color.RgbToHtml(1, 0.5, 0)
      '#ff8000'
  
      '''
      return '#%02x%02x%02x' % tuple((min(round(v*255), 255) for v in (r, g, b)))
docs: Convert the color from (r, g, b) to #RRGGBB.
  
      Parameters:
        :r:
          The Red component value [0...1]
        :g:
          The Green component value [0...1]
        :b:
          The Blue component value [0...1]
  
      Returns:
        A CSS string representation of this color (#RRGGBB).
  
      >>> Color.RgbToHtml(1, 0.5, 0)
      '#ff8000'