Difference between revisions of "SpriteImage"
From Sonic Retro
(Created page with "<includeonly>{{cropimage |image={{{1|}}} |width={{#if: {{{crop_width|}}} | {{{crop_width}}} | }} |height={{#if: {{{crop_height|}}} | {{{crop_height}}} | }} |x={{#if: {{{crop_x...") |
|||
Line 13: | Line 13: | ||
==Usage== | ==Usage== | ||
− | <tt><nowiki>{{</nowiki> | + | <tt><nowiki>{{</nowiki>SpriteImage|'''{{green|image name.png}}'''|'''{{red|f}}'''}}</tt> |
* <tt>{{red|'''f'''}}</tt> = scaling factor (i.e. 2 is double size). | * <tt>{{red|'''f'''}}</tt> = scaling factor (i.e. 2 is double size). | ||
Line 21: | Line 21: | ||
<pre> | <pre> | ||
− | {{ | + | {{SpriteImage|image name.png|f |
| crop_width= | | crop_width= | ||
| crop_height= | | crop_height= |
Revision as of 12:32, 27 March 2018
Note: This is Template:Sprite on Sega Retro.
Display a sprite with optional scaling.
Usage
{{SpriteImage|image name.png|f}}
- f = scaling factor (i.e. 2 is double size).
Cropping sprites
If using a spritesheet, add the following parameters to crop a single sprite:
{{SpriteImage|image name.png|f | crop_width= | crop_height= | crop_x= | crop_y= }}