 <p>The code is actually working great, but only in <em>Processing</em>, not in <em>Processing.js</em> even though this fonctionnality appear in both reference pages <a href="http://processingjs.org/reference/PImage/" rel="nofollow">http://processingjs.org/reference/PImage/</a></p>