Make the web page work for you by placing your canvas in a fixed div size.
<div style="width: 400px; height: 400px; overflow: auto;">
<canvas id="mycanvas" data-processing-sources="mysketch.pde file2.pde ...">
</canvas>
</div>
Now the web page will automatically provide you with scrollbars for the canvas if you use size () larger than 400x400
source
share