code: def set_fg(self, r, g, b):
          
          self.img_fg = (r, g, b)
          self.redraw(whence=3)
docs: Set the foreground color.
  
          Parameters
          ----------
          r, g, b : float
              RGB values, which should be between 0 and 1, inclusive.