Skip to content

Commit

Permalink
add sprites docs (#245)
Browse files Browse the repository at this point in the history
  • Loading branch information
bdon authored May 9, 2024
1 parent 3d001da commit ab20125
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions sprites/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Sprites

You will need a Rust compiler.

`cargo build --release` will create the `spritegen` binary in `target/release`

To generate spritesheets for the light theme:

`./target/release/spritegen refill.svg themes/light.json dist/light`

Creates `dist/light.json`, `dist/light.png`, `dist/[email protected]`, `dist/[email protected]`

In the basemaps viewer (run `npm run dev` in `/app`), check the "local sprites" box to load sprites from `/sprites/dist`

0 comments on commit ab20125

Please sign in to comment.