[metapost] feature request

mskala at ansuz.sooke.bc.ca mskala at ansuz.sooke.bc.ca
Sun Apr 7 16:43:31 CEST 2013


On Sun, 7 Apr 2013, mv968 wrote:
> Sorry newbie here. What about a "scaledaround" command? That is scaling with
> the possibility of choosing the origin of scaling. I think it would be useful.

Try this.  It's a modification of the rotatedaround macro from mfplain.mp.

def scaledaround(expr z, w) = shifted -z scaled w shifted z enddef;

-- 
Matthew Skala
mskala at ansuz.sooke.bc.ca                 People before principles.
http://ansuz.sooke.bc.ca/


More information about the metapost mailing list