
11 May
2025
11 May
'25
3:13 p.m.
Am 10.05.2025 um 21:39 schrieb Jeroen:
Is there a way with metapost to get a slightly off-centered (upper- right) shadow around a figure?
This a simple version (the \setupexternalfigures line is needed to load the example image because it won't wotk with dummy graphics): \startuseMPgraphic{shadow} fill OverlayBox shifted (EmWidth/2,EmWidth/2) withcolor "lightgray" ; setbounds currentpicture to OverlayBox ; \stopuseMPgraphic \defineoverlay [shadow] [\useMPgraphic{shadow}] \setupexternalfigures[location=default] \starttext \externalfigure[mill] \blank \externalfigure[mill][background=shadow] \stoptext Wolfgang