if (Math.min(x, lastx) < clipR && Math.max(x, lastx) > clipL
&& Math.min(y, lasty) < clipT && Math.max(y, lasty) > clipB) {</BUG>
canvas.drawLine(lastx, lasty, x, y, paint);
<BUG>}</BUG>
lastx = x;
<BUG>lasty = y;
}</BUG>
canvas.rotate(tileBox.getRotate(), tileBox.getCenterPixelX(), tileBox.getCenterPixelY());
}
}

if (Math.min(x, lastx) < clipR && Math.max(x, lastx) > clipL
&& Math.min(y, lasty) < clipT && Math.max(y, lasty) > clipB) {
float segment = intp & 15;
if (segment < 5) {
paint.setColor(internal ? Algorithms.getRainbowColor(((double) (i)) / ((double) size)) : Color.BLACK);
float segpiece = 5 - segment;
if (segpiece > 3)
segpiece = 3;
if (!broken) {
float sw = stroke * segpiece * scale;
paint.setStrokeWidth(sw);
canvas.drawLine(lastx, lasty, x, y, paint);
