Jairo
Try
draw unitsquare scaled 1cm shifted (xcm, ycm);
Page 11 of the manual metafun-p.pdf is your friend here. My recent conversation with Taco on this list will be usefull as well.
Best Wishes
Keith
On 16/08/2020 18:06, Jairo A. del Rio wrote:
Hi list! A simple question: is there an equivalent of thetextext for a normal picture (an "image(draw ... ;)")? I want to move the center of a picture to an specific point, like this:
\startMPpage
draw thetextext("\tttf hello", origin) ;
draw unitsquare scaled 1cm;
\stopMPpage
The "hello" is centered at the origin. I want to achieve the same result for pictures. I've seen such a command some time ago, but I've forgotten and I cannot find it again in documentation. Thanks and sorry for any inconvenience.
Regards,
Jairo :)
___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___________________________________________________________________________________