stitch
stitch copied to clipboard
Investigate importing SVG images as sprites
When we need a quick icon, we grab stuff from FontAwesome. That comes as an SVG, so there's then an editing step to make any modifications and then export as PNG for use in GameMaker.
Can we convert SVGs on the fly so that we can bypass that part of the process. Sharp has some SVG support, though historically I've had trouble getting it to do what I want. May be worth checking out.
What, if any, options would need to be provided during import? Would we just convert as-is or allow setting some useful properties (width/height, color)?
@BscotchSeth Any opinions on this?
For this to work for our needs, we would need:
- Color
- Padding
- Size constraints (pixel width/height)
That's about it!