Difference between revisions of "Sprite"
From Sega Retro
Line 1: | Line 1: | ||
− | <noinclude>My gift to Hivebrain</noinclude | + | <noinclude>My gift to Hivebrain</noinclude> |
− | {{#vardefine:nativeSpriteWidth|{{#mediawidth:{{{1}}}}}}} | + | {{#vardefine:nativeSpriteWidth|{{#mediawidth:File:{{{1}}}}}}} |
− | {{#vardefine:nativeSpriteHeight|{{#mediaheight:{{{1}}}}}}} | + | {{#vardefine:nativeSpriteHeight|{{#mediaheight:File:{{{1}}}}}}} |
{{#vardefine:newSpriteWidth|{{#expr: {{#var:nativeSpriteWidth}} * {{{2}}} }} | {{#vardefine:newSpriteWidth|{{#expr: {{#var:nativeSpriteWidth}} * {{{2}}} }} | ||
− | {{#vardefine:newSpriteHeight|{{#expr: {{#var:nativeSpriteHeight}} * {{{2}}} }} | + | {{#vardefine:newSpriteHeight|{{#expr: {{#var:nativeSpriteHeight}} * {{{2}}} }} |
+ | |||
+ | {{#var:nativeSpriteWidth}} {{#var:nativeSpriteHeight}} | ||
+ | {{#var:newSpriteWidth}} {{#var:newSpriteHeight}} | ||
+ | |||
+ | |||
<span style="image-rendering: -moz-crisp-edges; -ms-interpolation-mode: nearest-neighbor;">[[File:{{{1}}}|{{#var:newSpriteWidth}}x{{#var:newSpriteHeight}}px]]</span> | <span style="image-rendering: -moz-crisp-edges; -ms-interpolation-mode: nearest-neighbor;">[[File:{{{1}}}|{{#var:newSpriteWidth}}x{{#var:newSpriteHeight}}px]]</span> |
Revision as of 09:17, 15 June 2015
My gift to Hivebrain
{{#vardefine:newSpriteWidth|Expression error: Unexpected < operator. {{#vardefine:newSpriteHeight|Expression error: Unexpected < operator.
"File:{{{1}}}" is not a valid title "File:{{{1}}}" is not a valid title
[[File:{{{1}}}|xpx]]