![](https://secure.gravatar.com/avatar/6114858d84b0f40cf715f12237ab67a1.jpg?s=120&d=mm&r=g)
26 Jun
2006
26 Jun
'06
4:44 p.m.
On 6/27/06, Hans Hagen wrote:
Mojca Miklavec wrote:
To Hans: thanks for the hint! (Slowly starting to believe that the code might indeed reach 4 lines ;)
another one:
vardef mytransform(expr pathorpicture) = pathorpicture if reflect=2: reflectedabout((0,0),(1,1)) elseif reflect=3: reflectedabout((0,0),(1,-1)) elseif reflect=4: reflectedabout((-1,0),(1,0)) fi enddef;
-)
What a waste of space ;) ! vardef mytransform(expr pathorpicture) = pathorpicture if reflect > 1: reflectedabout( if reflect=2: (0,0),(1,1) elseif reflect=3: (0,0),(1,-1) elseif reflect=4: (-1,0),(1,0) fi) fi enddef; (Slowly starting to believe that MP might become as horrible & unreadable as perl ;) Mojca