News for hackers. Stuff that matters.
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.
Re:Two.js by jacobolus on Thursday July 16, 2015 @07:58PM (#9900615)
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.

Re:Two.js by amelius on Friday July 17, 2015 @05:31AM (#9901893)
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.

Re:Two.js by bburky on Friday July 17, 2015 @11:01PM (#9906416)
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...

Re:Two.js by amelius on Saturday July 18, 2015 @04:16AM (#9906963)
Thanks!