title: Unable to run, ValueError: invalid color argument
body: <p>im learn about OpenCV and pygame, here's my code
  <a href="https://pastebin.com/b03rnLYT" rel="nofollow noreferrer">https://pastebin.com/b03rnLYT</a></p>
  <p>but when i tried to run it, they show me this</p>
  <pre><code>Traceback (most recent call last):
    File &quot;C:\Program Files\JetBrains\PyCharm Community Edition 2022.1\plugins\python-ce\helpers\pydev\pydevd.py&quot;, line 1491, in _exec
      pydev_imports.execfile(file, globals, locals)  # execute the script
    File &quot;C:\Program Files\JetBrains\PyCharm Community Edition 2022.1\plugins\python-ce\helpers\pydev\_pydev_imps\_pydev_execfile.py&quot;, line 18, in execfile
      exec(compile(contents+&quot;\n&quot;, file, 'exec'), glob, loc)
    File &quot;C:/Users/auzan/PycharmProjects/CVGameDev/intruduction/A. Project - GUI.py&quot;, line 73, in &lt;module&gt;
      drawAll()
    File &quot;C:/Users/auzan/PycharmProjects/CVGameDev/intruduction/A. Project - GUI.py&quot;, line 55, in drawAll
      drawWindowPad((484, 57, w, h), pads[0]['color'], pads[0]['text'], pads[0]['icon'])
    File &quot;C:/Users/auzan/PycharmProjects/CVGameDev/intruduction/A. Project - GUI.py&quot;, line 50, in drawWindowPad
      pygame.draw.rect(window, color, pos)
  ValueError: invalid color argument
  </code></pre>
  <p>can you help me find the solution?
  thankyou very much</p>