1
$\begingroup$

I see a number of applications where polygons, lines, splines, etc., are algorithmically given a "hand drawn" look. What algorithm or general approach is applicable for this?

As an example, sketchvis.com does this for graphviz visualizations, and provides the option to turn the sketchiness off and on.

sketchviz illustration

$\endgroup$

1 Answer 1

1
$\begingroup$

I don't know how they do it precisely, but if I was to do it, I would sample a few points along the lines/curves to be drawn, add small random perturbations, and join them with smooth interpolating curves such as cubic splines. Apparently, all lines are drawn twice.

Possibly also, predefine Bezier curves to match a line segment or approximate an ellipse, transform them to align to the desired placement, then move the control points randomly.

In the example the characters are drawn the same way, because you don't have access to their definition as curves. You might also think to add small perturbations, writing character per character.

$\endgroup$
1
  • $\begingroup$ Excellent advice. For the characters, they have some handwritten-style fonts. It's a neat idea to peturb these as well! $\endgroup$ Commented May 30, 2023 at 15:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.