<div dir="ltr">Thanks.<div>I didn't knew the real use of drawoptions...</div><div><br></div><div>Christophe</div></div><div class="gmail_extra"><br><div class="gmail_quote">2017-07-05 22:53 GMT+02:00 Hans Hagen <span dir="ltr"><<a href="mailto:pragma@wxs.nl" target="_blank">pragma@wxs.nl</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 7/5/2017 10:05 PM, Christophe Poulain wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Sorry for this question, but i must be tired...<br>
<br>
In this code (on metapost 1.999 - Debian<br>
-----------------------<br>
prologues:=2;<br>
<br>
beginfig(1);<br>
   path seg;<br>
   seg=(0,0)--(50,50);<br>
   draw seg withcolor red;<br>
   drawoptions(shifted (25,0));<br>
   draw seg withcolor blue;<br>
   drawoptions(shifted (50,0));<br>
   draw seg withpen pencircle scaled 2bp;%*<br>
   draw seg withpen pencircle scaled 2bp withcolor green;%*<br>
   draw seg withcolor green withpen pencircle scaled 2bp;%*<br>
   drawoptions();<br>
   draw (seg shifted (75,0)) withpen pencircle scaled 2bp withcolor red+green;<br>
endfig;<br>
<br>
end<br>
----------------------<br>
<br>
why the drawoptions parameters not applied on the line %* ?<br>
</blockquote></span>
the drawoptions are applied to a path and the scaled and drawoptions is applied to the pen, like<br>
<br>
    path seg; seg=(0,0)--(50,50);<br>
    draw seg withcolor red withpen pencircle shifted (25,0);<br>
    draw seg withcolor blue withpen pencircle shifted (50,0);<br>
    draw seg withcolor green withpen pencircle;<br>
    draw seg withpen pencircle scaled 2bp shifted (50,0);%*<br>
<br>
(draw options is just text applied to a path / picture and normally contains a pen specification or color)<br>
<br>
Hans<br>
<br>
------------------------------<wbr>------------------------------<wbr>-----<br>
                                          Hans Hagen | PRAGMA ADE<br>
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands<br>
       tel: 038 477 53 69 | <a href="http://www.pragma-ade.nl" rel="noreferrer" target="_blank">www.pragma-ade.nl</a> | <a href="http://www.pragma-pod.nl" rel="noreferrer" target="_blank">www.pragma-pod.nl</a><br>
------------------------------<wbr>------------------------------<wbr>-----<br>
</blockquote></div><br></div>