code: def _init_rgb(self, r: int, g: int, b: int) -> None:
          
          if self.rgb_mode:
              self.rgb = (r, g, b)
              self.hexval = rgb2hex(r, g, b)
          else:
              self.rgb = hex2rgb(rgb2termhex(r, g, b))
              self.hexval = rgb2termhex(r, g, b)
  
          self.code = hex2term(self.hexval)
docs: Initialize from red, green, blue args.