// Get corresponding shape coordinate
textureCoordinate.set(area.getPoint(j));
// Rotate, scale, translate results in translation first, then scaling and then rotation
Transformations.rotate(textureCoordinate, rad);
textureCoordinate.scale(scale);
textureCoordinate.x += x;
textureCoordinate.y += y;
}
}
shape.setTexture(texture);