I’m wondering why the x,y values for paint fill are 0-1 based and not simply pixels.
For example:
vertices = { 100, 100, 200, 100, 200, 200, 100, 200 } local x,y = display.contentCenterX, display.contentCenterY local o = display.newPolygon( x, y, vertices ) o:setFillColor( 255, 0, 0 ) o.fill = { type="image", filename="aquariumbackgroundIPhone.jpg" } --o.fill = nil o.strokeWidth = 10 o:setStrokeColor( 0, 255, 255 ) transition.to( o.fill, { delay=1000, time=3000, scaleX=2, scaleY=2 } ) transition.to( o.fill, { delay=5000, time=3000, x=1, y=0 } )
Setting x to 1 shifts the image a full width on the horizontal.