|
From: Magnus L. H. <ma...@he...> - 2004-08-03 10:50:43
|
Andre Wobst <wo...@us...>: > > Hi, > > I just got some interesting links from a friend: That is indeed rather interesting. The curve construction reminds me of a feature (or set of features) from MetaPost that I believe is not available in PyX, but which can be quite nice... Basically, it's the spline stuff that tries to fit a curve to the points you give (without you having to give the Bezier contour points explicitly). Also, you can give such (very useful) constraints as the direction of the curve at a given point, and the spline will adapt to that. I assume this could quite easily be built on *top* of PyX -- I just thought it might be nice to have it as an integrated part of the path mechanism? (I don't know the details of the splines used by MP/MF, but they look fine, IMO.) And another thing... I have no idea how it's done in MP (in MF I can sort of understand it) but MP allows you to use custom-made paths as brushes in other parhts. Very nice for calligraphic-like looks, for example. (I guess one heavy-handed way of doing it would be simply to replicate the brush all along the path, with the appropriate spacing calcilated somehow, perhaps even dynamically along the path.) Sorry to turn yet another thread into one about possible features... These are just a couple of things that came up when I took a stab at implementing big, flexible braces (such as these: http://just.letterror.com/ltrwiki/GlyphInterchangeFormat) in PyX. -- Magnus Lie Hetland "Canned Bread: The greatest thing since sliced http://hetland.org bread!" [from a can in Spongebob Squarepants] |