On Wed, 23 May 2018 18:05:07 +0200
Hans Hagen
Is there any way to set origin to another value than (0, 0) in MP?
I realize it might sound weird, but it would make things easier in an example that I’m working on. redefining origin is a bad idea (don't expect help if you do that)
pair origin ; origin = (0,0) ; is used in many places in the MP macros, and redefining this "constant" would cause all sorts of problems, as Hans indicates.
you can alway sdo
currentpicture := currentpicture shifted - center currentpicture;
I do this a lot, but recognize that it only makes a difference with respect to subsequent drawing actions: The MP graphic, when "sent back" to ConTeXt is treated as a box (defined by its bounding box) and placed by ConTeXt according to its context (no pun intended)! One could always play with this bounding box for interesting effects: setbounds currentpicture to ((bbox currentpicture) shifted (xx,yy)) ; for example. Alan