public void drawBrush(int steps, Vector3D whatToAdd) { int i = 0; do { i++; cPos.addLocal(whatToAdd); // Draw new brush into FBO at correct position Vector3D diff = cPos.getSubtracted(drawLine.getCenterPointLocal()); drawApp.pushMatrix(); drawApp.translate(diff.x, diff.y); // Draw brush drawLine.setStrokeColor(lineColor); drawLine.setFillColor(lineColor); drawLine.drawComponent(drawApp.g); drawApp.popMatrix(); } while (i < steps); }