Module:Sprite: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 28: Line 28:
height = tostring(sheetHeight * ratio) .. 'px',
height = tostring(sheetHeight * ratio) .. 'px',
width = tostring(sheetWidth * ratio) .. 'px',
width = tostring(sheetWidth * ratio) .. 'px',
top = (offsetY - cellHeight * row) * ratio,
top = tostring((offsetY - cellHeight * row) * ratio) .. 'px',
left = (offsetX - cellWidth * row) * ratio
left = tostring((offsetX - cellWidth * col) * ratio) .. 'px'
})
})
:done()
:done()