title: Get Viewport Width With JQuery and Use In Processing JS
body: <p>I'm writing a processingjs script that I want to resize depending on the users viewport width. As far as I know there's no functionality for this in processing, so I've been looking at JQuery and using <code>$(window).width();</code>.</p>
  
  <p>Only I don't know how to get that value into the size(width, height) function in processing.</p>
  
  <p>Any ideas?</p>
  
  <p>Thanks</p>
  
  <p>Links if you need them:
  <a href="http://processingjs.org/" rel="nofollow">http://processingjs.org/</a>
  http://api.jquery.com/width/</p>