code: def RgbToIntTuple(r, g, b):
      '''Convert the color from (r, g, b) to an int tuple.
  
      Parameters:
        :r:
          The Red component value [0...1]
        :g:
          The Green component value [0...1]
        :b:
          The Blue component value [0...1]
  
      Returns:
        The color as an (r, g, b) tuple in the range:
        r[0...255],
        g[0...2551],
        b[0...2551]
  
      >>> Color.RgbToIntTuple(1, 0.5, 0)
      (255, 128, 0)
  
      '''
      return tuple(int(round(v*255)) for v in (r, g, b)f RgbToIntTuple(r, g, b):
      '''Convert the color from (r, g, b) to an int tuple.
  
      Parameters:
        :r:
          The Red component value [0...1]
        :g:
          The Green component value [0...1]
        :b:
          The Blue component value [0...1]
  
      Returns:
        The color as an (r, g, b) tuple in the range:
        r[0...255],
        g[0...2551],
        b[0...2551]
  
      >>> Color.RgbToIntTuple(1, 0.5, 0)
      (255, 128, 0)
  
      '''
      return tuple(int(round(v*255)) for v in (r, g, b))
docs: Convert the color from (r, g, b) to an int tuple.
  
      Parameters:
        :r:
          The Red component value [0...1]
        :g:
          The Green component value [0...1]
        :b:
          The Blue component value [0...1]
  
      Returns:
        The color as an (r, g, b) tuple in the range:
        r[0...255],
        g[0...2551],
        b[0...2551]
  
      >>> Color.RgbToIntTuple(1, 0.5, 0)
      (255, 128, 0)