fill.rotation

Type Number
Object BitmapPaint
Library display.*
Revision 2017.3060
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