alan.caruanambom@gmail.com schrieb am 23.07.2024 um 20:29:
Hello, I need the background (lines and points) to be inside (tangent) of the frame, I don't know how to do it
\startuseMPgraphic{fullheightbackground} fill unitsquare xyscaled (OverlayWidth, OverlayHeight) withcolor "gray" ;
w := MakeupWidth; h := OverlayHeight;
draw (0,0)--(MakeupWidth,0) withpen pencircle scaled 2pt withcolor green; draw (0,OverlayHeight)--(MakeupWidth,OverlayHeight) withpen pencircle scaled 2pt withcolor green;
Add offset value to the horizontal/vertical dimensions. draw (0,1pt+OverlayLineWidth)--(MakeupWidth,1pt+OverlayLineWidth) withpen pencircle scaled 2pt withcolor green; draw (0,OverlayHeight-1pt-OverlayLineWidth)--(MakeupWidth,OverlayHeight-1pt-OverlayLineWidth) withpen pencircle scaled 2pt withcolor green;
drawdot (0,0) withpen pencircle scaled 8pt withcolor red; drawdot (MakeupWidth,OverlayHeight) withpen pencircle scaled 8pt withcolor red;
Set a bounding box size for the image to ensure the image isn't stretched to fill the available space. setbounds currentpicture to OverlayBox;
\stopuseMPgraphic
Wolfgang