svg-template
Template for creating onchain SVGs
Usage
- Install dependencies with
forge install && yarn install
- Run
forge test --ffi
to output an svg. Each time you run the test inSVG.t.sol
will outputonchain.svg
to/src
and open it in your default app for SVGs. Browser is a good choice for SVG reader. - Change the data in
SVG.sol
to output the SVG of your dreams.
Note: foundry.toml
's allows Forge to find libs in /node_modules
without an explicit remapping. For this reason there is no remappings.txt needed.