Skip to content

Commit ab20125

Browse files
authored
add sprites docs (#245)
1 parent 3d001da commit ab20125

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

sprites/README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Sprites
2+
3+
You will need a Rust compiler.
4+
5+
`cargo build --release` will create the `spritegen` binary in `target/release`
6+
7+
To generate spritesheets for the light theme:
8+
9+
`./target/release/spritegen refill.svg themes/light.json dist/light`
10+
11+
Creates `dist/light.json`, `dist/light.png`, `dist/[email protected]`, `dist/[email protected]`
12+
13+
In the basemaps viewer (run `npm run dev` in `/app`), check the "local sprites" box to load sprites from `/sprites/dist`

0 commit comments

Comments
 (0)