rough-stuff/rough

Setting stroke to "none" has no effect on canvas

jwoLondon opened this issue · 5 comments

Is there a way to stop outer stroke drawing on canvas? Setting stroke:"none" works for SVG but not for canvas. I realise one can set stroke: "rgba(0,0,0,0)", but would be good to have a more performant approach and one that is consistent between SVG and Canvas contexts.

If it doesn't do that on canvas, then it's definitely a bug. Let me take a look.

Here's a minimal reproducible example via Observable:

https://observablehq.com/d/e7de66607b365674

Ahh it got fixed in v4.0 Your example uses 3.0
Here's a fork with the latest version: https://observablehq.com/@preetster/rough-strokes

Ah, thanks. I didn't realise there was a V4. Sorry for wasting your time.

no problem at all!