Module:Sprite: Difference between revisions

Jump to navigation Jump to search
36 bytes added ,  27 May 2022
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()

Navigation menu