mirror of
https://github.com/rough-stuff/rough.git
synced 2026-02-15 07:55:38 -05:00
Rough.js API
The main object to work with is RoughCanvas. This canvas object can be used to create different shapes, lines, curves and paths.
The canvas object has properties that can be used to configure the overall style (default style) of all the objects drawn on it. For example, changing the fill-color or the stroke-width will change the fill-color and stroke-width of all the objects. Individual objects can override these properties.