3 ms·
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 a
by jacobolus 11y 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.
- amelius 11y agoYes, 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.
- bburky 11y agoI have this bookmarked for some reason, it may help: http://stackoverflow.com/questions/3205819/bezier-path-widening/3220819 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/jdk/openjdk/7-b147/sun/java2d/pisces/Stroker.java http://grepcode.com/file/repository.grepcode.com/java/root/j...
- amelius 11y agoThanks!