Type Number Object BitmapPaint Library display.* Revision Release 2025.3721 See also BitmapPaint ImageSheetPaint
Defines the rotation of the BitmapPaint image.
-- Create a vector rectangle
local rect = display.newRect( 200, 200, 300, 300 )
-- Set the fill (paint) to use the bitmap image
local paint = {
type = "image",
filename = "texture1.png"
}
-- Fill the rectangle
rect.fill = paint
-- Rotate the fill
rect.fill.rotation = 45