title: Get RGB value from screen pixels with python
body: <p>To get the RGB values from a pixel of the <strong>screen</strong> with coordinates (x,y) in Python, I do:</p>
  
  <pre><code>import PIL.ImageGrab
  rgb = PIL.ImageGrab.grab().load()[x,y]
  </code></pre>
  
  <p>It was working as I expected until I did:</p>
  
  <pre><code>rgb = PIL.ImageGrab.grab().load()[1673,0]
  </code></pre>
  
  <p>Instead of the RGB values of the pixel, I received:</p>
  
  <pre><code>IndexError: image index out of range
  </code></pre>
  
  <p>I don't understand why because my screen has 1920x1080 resolution.</p>
  
  <p>How can I fix this?</p>