561
edits
Auburnsummer (talk | contribs) No edit summary |
Auburnsummer (talk | contribs) 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' | ||
}) | }) | ||
:wikitext(string.format('[[%s|%dpx|class=pixelart]]', image, sheetWidth * ratio)) | :wikitext(string.format('[[%s|%dpx|class=pixelart]]', image, sheetWidth * ratio)) |