Module:Sprite: Difference between revisions

no edit summary
No edit summary
Tag: Reverted
No edit summary
Tag: Reverted
Line 32: Line 32:
['vertical-align'] = 'middle',
['vertical-align'] = 'middle',
['--blackstroke-color'] = outline
['--blackstroke-color'] = outline
})
:tag('span')
:css({
position = 'absolute',
height = tostring(sheetHeight * ratio) .. 'px',
width = tostring(sheetWidth * ratio) .. 'px',
top = tostring((offsetY - cellHeight * row) * ratio) .. 'px',
left = tostring((offsetX - cellWidth * col) * ratio) .. 'px'
})
:tag('img')
:attr({
class = imageClass,
src = "https://wiki.rhythm.cafe/w/images/c/c7/IanSpriteS.png"
})
})
:allDone()
:allDone()