Re:Two.js
by amelius on Thursday July 16, 2015 @07:21PM
(#9900462)
I'm looking for a library that can create a calligraphic shape (path) from a stroke path.
[ Parent
| on HN ]
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.
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...