Why do paint.fill.x,y work between 0,1 and not pixels?

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.

Maybe it comes from underlayer opengl where texture coordinates are in 0-1 range from top left corner… (like introduced with anchor points)

Fill position is in reference to object itself, not in some global coordinates.

Maybe it comes from underlayer opengl where texture coordinates are in 0-1 range from top left corner… (like introduced with anchor points)

Fill position is in reference to object itself, not in some global coordinates.