https://github.com/nnnnicholas/svg-template
https://github.com/nnnnicholas/svg-template
Last synced: 15 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/nnnnicholas/svg-template
- Owner: nnnnicholas
- Created: 2023-02-13T17:36:31.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-06-25T03:33:50.000Z (almost 2 years ago)
- Last Synced: 2025-03-31T10:42:26.324Z (about 2 months ago)
- Language: JavaScript
- Size: 15.6 KB
- Stars: 4
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# svg-template
Template for creating onchain SVGs## Usage
1. Install dependencies with `forge install && yarn install`
2. Run `forge test --ffi` to output an svg. Each time you run the test in `SVG.t.sol` will output `onchain.svg` to `/src` and open it in your default app for SVGs. Browser is a good choice for SVG reader.
3. 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.