Hacker News new | ask | show | jobs
by jacobolus 3985 days ago
You can do this pretty easily with SVG, assuming your browser supports SVG, and your “caligraphic stroke” means you want the envelope of an ellipse translated along the path.

Or do you need the precise bezier-curves for the stroke outline? For that you need to do some computation.

1 comments

Yes, I want the second, because I want to use the outline in further computations.

It would be interesting to know how to compute the calligraphic stroke outline in terms of bezier curves from a given bezier curve.

I have this bookmarked for some reason, it may help: http://stackoverflow.com/questions/3205819/bezier-path-widen...

Half the links are dead now. This is the openjdk Stroker.java code: http://grepcode.com/file/repository.grepcode.com/java/root/j...

Thanks!