title: Absolute Mouse Positions on Processing
body: <p>This is a copy paste of a post i made on the processing forum (where i haven't got an answer so far) thought i might as well try here.</p>
  
  <p>Processing is a very cool way to draw stuff, specially for the webpages. Just as a reference <a href="http://processing.org" rel="nofollow noreferrer">http://processing.org</a></p>
  
  <p>Hey, i'm new to processing, i'm using it to make a flashless website, so i'm pretty much drawing on a canvas.</p>
  
  <p>I'm having a problem with the mouse position, although the coordinates, when drawing, consider the top left corner to be position 0,0; the actual mouse coordinates consider the 0,0 to be the top left corner of the browser window.</p>
  
  <p>So my problem is this, the canvas is operating on a centered web-page, whenever the browser changes size, so does the coordinates of the mouse within the canvas.</p>
  
  <p>Is there any way to make the coordinates of the mouse relative to the canvas? So that i can change the size of my browser window and the top left corner will be always 0,0 for the mouse coordinates? </p>
  
  <p>So that's the problem, i dunno how many ppl here in stackoverflow are experienced with this, but i hope someone could help me :)</p>
  
  <p>thanks to the stack overflow community in advance.</p>