A
acadoid
Stamm-User
- 163
@cschaetzle: Das folgende sollte funktionieren:
Code:
width = LN.getWidth();
height = LN.getHeight();
scale = LN.getScale();
step = width / 150 + scale * width / 25;
bbleft = 4.5 * step;
bbright = (Math.floor(width / step) - 2.5) * step;
bbtop = 2.5 * step;
bbbottom = (Math.floor(height / step) - 2.5) * step;
LN.drawCheckeredPattern(scale, bbleft, bbtop, bbright, bbbottom, false);
LN.setStrokeWidth(0.002 * width);
LN.setStrokeCap(2);
LN.drawLine(bbleft, bbtop, bbright, bbtop);
LN.drawLine(bbright, bbtop, bbright, bbbottom);
LN.drawLine(bbright, bbbottom, bbleft, bbbottom);
LN.drawLine(bbleft, bbbottom, bbleft, bbtop);