Phaser home
Phaser AE
Open source
Phaser 4
Download
Learn
Editor
Tools
Docs
Examples
News
Log in
Examples
/
Loader
/
Svg
Phaser 4.1.0
Phaser 4 examples
Svg
3
examples
Examples
3
Load SVG
Load and display Scalable Vector Graphics (SVG) files as textures in your game.
Load SVG with Fixed Size
Demonstrates how to load an SVG file with custom dimensions specified during the load process, allowing it to be rendered at a specific scale without losing quality.
Loading SVGs with Scale
Demonstrates how to scale SVG files during the loading process using a scale factor, allowing you to generate textures at specific sizes before they are added to the game.