fill.rotation

Type Number
Object BitmapPaint
Library display.*
Revision Release 2024.3703
See also BitmapPaint
ImageSheetPaint

Overview

Defines the rotation of the BitmapPaint image.

Example

-- 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