rough icon indicating copy to clipboard operation
rough copied to clipboard

Create graphics with a hand-drawn, sketchy, appearance

Results 43 rough issues
Sort by recently updated
recently updated
newest added

Both dashed and zigzag use `Math.atan`: ```ts const alpha = Math.atan((p2[1] - p1[1]) / (p2[0] - p1[0])); ``` It would seem that a generated vertical line would cause errors. Is...

Using generator.rectangle(x, y, width, height, options) with at least one undefined parameter x, y, width or height leads to browser lock and quick out-of-memory state. It is no problem with...

I have a path like this: https://jsfiddle.net/qetypnac/2/ - This is the shape when `roughness = 0` ```javascript generator.path(pathData, { "stroke": "#000000", "fill": "#ced4da", "fillStyle": "solid", "strokeWidth": 1, "roughness": 2, "seed":...

It's a checkerboard; The filling algorithms are giving expected result in `3.1.0`, but failing in newer version (tested on `4.2.3`).Fiddle to replicate: https://jsfiddle.net/8qscjo1n/ The bug affects ell `fillStyle` algorithms. But...

The current calculation of radial increment is different for arc filling and drawing, making it very different in case of a low `curveStepCount` This change copies the increment calculation from...

Is there a way to use rough.js so that the drawing commands are animated? I want to be able to make a moving animation that progressively draws the diagram I...

This worked quite nicely before, but now it looks like this: I can extract some sample code if it is helpful for debugging.

Is RoughJS support WebGL? Or maybe sometimes it will support webgl context?

Hi Preet! Thank you for this awesome project! I think the Rough.js docs would be even better if the examples were interactive, so people could change the code and see...

I have a use case that needs to draw border of a shape with gradient. Is there a way to do so? Thanks.