Module:Sprite: Difference between revisions

24 bytes removed ,  28 May 2022
no edit summary
No edit summary
No edit summary
Line 36: Line 36:
width = tostring(sheetWidth * ratio) .. 'px',
width = tostring(sheetWidth * ratio) .. 'px',
top = tostring((offsetY - cellHeight * row) * ratio) .. 'px',
top = tostring((offsetY - cellHeight * row) * ratio) .. 'px',
left = tostring((offsetX - cellWidth * col) * ratio) .. 'px',
left = tostring((offsetX - cellWidth * col) * ratio) .. 'px'
filter = outlineCss
})
})
:wikitext(string.format('[[%s|%dpx|class=pixelart]]', image, sheetWidth * ratio))
:wikitext(string.format('[[%s|%dpx|class=pixelart]]', image, sheetWidth * ratio))