Duplicate of this thread: https://discourse.processing.org/t/creating-svg-limited-to-canvas-size/38426/9