[metapost] Redefine ..
thenders at gmail.com
Mon Jun 4 18:00:03 CEST 2012
I am drawing 3D graphics, and many of my "points" are colors instead of
pairs. Of course, the colors are projected to pairs eventually, but I
would like to define paths of colors directly with .. by doing something
I have a vardef P that transforms colors into pairs, and thus I can always
but I would like to be able to omit this P usage. My attempt thusfar is
def pathnode primary a =
if color a:
primarydef a .. b =
pathnode(a) .. pathnode(b)
but this is not working. I would appreciate any insight into how I might
fix this so that I can use .. between pairs.
Thanks in advance,
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the metapost