Hi !
Is it possible to use a spritesheet to fill a shape ?
I’ve tried this (but obviously, it doesn’t work
)
local sheetData = {width=128, height=128, numFrames=20, sheetContentWidth=640, sheetContentHeight=512} local mySheet = graphics.newImageSheet("spritesheet.png", sheetData) local sequenceData ={{name = "defaut", start=1, count=20, time=600, loopCount=0}} local spritesheetTexture = {type = "sprite", mySheet, sequenceData} local myObject = display.newRect(0,0,200,200) myObject.fill = spritesheetTexture