This page describes all you can do with RoughJS.
RoughCanvas & RoughSVG
Rough.js renders to Canvas or SVG. RoughCanvas or RoughSVG provides the main interface to work with this library.
Instantiate RoughCanvas by passing in the canvas node to rough.canvas() method.
rough.canvas (canvasElement, [, config])
let roughCanvas = rough.canvas(document.getElementById('myCanvas'));
Instantiate RoughSVG by passing in the root SVG node to rough.svg() method.
rough.svg (svgRoot, [, config])
let roughSvg = rough.svg(document.getElementById('svg'));
config is optional.