<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">From: <a href="https://www.researchgate.net/publication/265062623_Tutorial_in_MetaPost" class="">https://www.researchgate.net/publication/265062623_Tutorial_in_MetaPost</a><div class=""><br class=""></div><div class=""><b class=""><i class="">interim</i></b> - Make a local change to an internal variable</div><div class=""><br class=""></div><div class="">Martin Sluka</div><div class=""><br class=""></div><div class=""><br class=""><blockquote type="cite" class="">15. 5. 2019 v 9:23, Bruce Mutton <<a href="mailto:bruce@tomo.co.nz" class="">bruce@tomo.co.nz</a>>:<br class=""><br class="">Hi Bill<br class="">I think that merging what you have with an interim defaultscale:=0.6; variable as demonstrated by Thomas Holder here <a href="https://therion.speleo.sk/wiki/metapost#special_symbol_examples" class="">https://therion.speleo.sk/wiki/metapost#special_symbol_examples</a> will do the trick.<br class="">You probably want to keep the sc in def p_u_electriclight (expr pos,theta,sc,al), and multiply it by defaultscale before calling T:=identity...<br class="">Probably some trial and error involved.<br class="">Bruce<br class=""><br class="">-----Original Message-----<br class="">From: Therion <<a href="mailto:therion-bounces@speleo.sk" class="">therion-bounces@speleo.sk</a>> On Behalf Of Bill Gee<br class="">Sent: Monday, 13 May 2019 06:14<br class="">To: Therion Mail List <<a href="mailto:therion@speleo.sk" class="">therion@speleo.sk</a>><br class="">Subject: [Therion] Setting scale on custom symbol<br class=""><br class="">Hello everyone - <br class=""><br class="">I have defined a custom symbol for electric light fixtures. The MetaPost code is below. Now that I have used it, I find that it draws the symbol too large. I tried using "-scale small" and "-scale tiny", and that helps. Rather than go through and add that to every point, I would like to change the MetaPost so it draws the symbol a bit smaller.<br class=""><br class="">And I am lazy! I could replot all the points for each of the lines. It seems to me there should be a simpler way. I tried messing with the U:= parameters, but they seem to make no difference whatever.<br class=""><br class="">Is there a way I can declare a multiplier in the MetaPost code? Perhaps declaring u = 0.6u?<br class=""><br class="">Thanks!<br class="">-- <br class="">Bill Gee<br class=""><br class=""># This code defines an artificial electric light. Used in tourist sections of a cave.<br class=""> def p_u_electriclight (expr pos,theta,sc,al) =<br class=""> U:=(0.3u, 0.3u);<br class=""> T:=identity aligned al rotated theta scaled sc shifted pos;<br class=""> pickup PenC;<br class=""><br class=""> thdraw fullcircle scaled 0.5u shifted (0.0u, 0.7u);<br class=""> thdraw (-0.5u, -0.6u) -- (-0.5u, 0.0u);<br class=""> thdraw (-0.5u, 0.0u) .. (-0.35u, 0.55u) .. (0.0u, 0.7u);<br class=""> thdraw (0.0u, 0.7u) .. (0.35u, 0.55u) .. (0.5u, 0.0u);<br class=""> thdraw (0.5u,0.0u) -- (0.5u, -0.6u);<br class=""> thdraw (-0.7u, -0.6u) -- (0.7u, -0.6u);<br class=""><br class=""> enddef;<br class=""><br class=""><br class=""><br class="">_______________________________________________<br class="">Therion mailing list<br class=""><a href="mailto:Therion@speleo.sk" class="">Therion@speleo.sk</a><br class="">https://mailman.speleo.sk/listinfo/therion<br class=""><br class="">_______________________________________________<br class="">Therion mailing list<br class="">Therion@speleo.sk<br class="">https://mailman.speleo.sk/listinfo/therion<br class=""></blockquote><br class=""></div></body></html>