News for hackers. Stuff that matters.
Re:Rough.js v4.0 – hand-drawn, sketchy graphics by hirenj on Saturday January 25, 2020 @03:07AM (#22145337)
I’m using this in a scientific drawing tool that I put together - it was remarkably easy to integrate, and the sketch aesthetic is great for presentations or when you wish to convey uncertainty.

I’m still hanging out for a browser implementation of Fiziko (https://news.ycombinator.com/item?id=21651240) though, which would be a whole other cool aesthetic.

Re:Rough.js v4.0 – hand-drawn, sketchy graphics by tauchunfall on Saturday January 25, 2020 @05:44AM (#22145754)
There is some code [0] for generation of coastal lines in cartographic maps (text in french, code in JavaScript). It's kind of similar.

The blog post [1] about fiziko describes how it calculates parallel bezier curves using line intersection and curves of varying thinkness. The code about the coastal lines also uses a similar technique and describes how to get the result step by step.

[0] https://observablehq.com/@linard-y/chemin-decale-offset-path... [1] https://habr.com/en/post/454376/