I am new in metapost and I am unsure as to re-define the withcolor command to revert back to the metapost default.
I am trying to draw the cross section of a cylinder, where the inner circle is empty, but the outer marked with straight lines.
Can you please help me? I am very tight with time!
This is the code so far:
input hatching; u := 1cm; path circle; circle = fullcircle scaled 10u; outputtemplate:="%j%c.mps"; beginfig(1); hatchfill circle withcolor (45, 5mm, -.5bp); draw circle; draw fullcircle scaled 5u; % This needs to be filled with color white endfig; end
This is what it looks like: