
Description
Charts and diagrams can look too tidy, like a spreadsheet, when you want a whiteboard feel. Rough.js is a JavaScript library under 9 kB that draws lines, circles, polygons and SVG paths in a sketchy, hand-drawn style.
It renders to Canvas or SVG, powers hand-drawn tools such as Excalidraw, and is MIT-licensed.
Primitives: Lines, curves, arcs, polygons, circles and ellipses, all sketchy.
SVG paths: Any SVG path can be drawn rough.
Canvas or SVG: Pick either renderer.
Tunable: Roughness, fill style and bowing are adjustable.
Tiny: Under 9 kB, from npm or a CDN.
It renders to Canvas or SVG, powers hand-drawn tools such as Excalidraw, and is MIT-licensed.
Features
Primitives: Lines, curves, arcs, polygons, circles and ellipses, all sketchy.
SVG paths: Any SVG path can be drawn rough.
Canvas or SVG: Pick either renderer.
Tunable: Roughness, fill style and bowing are adjustable.
Tiny: Under 9 kB, from npm or a CDN.
