Watch
0
0
Fork
You've already forked esp32-c_its-companion
0

WIP Add graphics

This commit is contained in:
Jannik Beyerstedt 2026-09-07 12:34:58 +02:00
commit a8434b76d4
6 changed files with 72 additions and 13 deletions

View file

@ -119,3 +119,16 @@ The unit tests in this project are meant to be run on the host:
```
cargo test --target host-tuple --bin test --no-default-features -F std,spat
```
## Tips and Tricks
### Create TGA Assets
Images are loaded as TGA assets, but shall not have an alpha channel.
You can convert them using [ImageMagick](https://imagemagick.org) like this:
```shell
# resize to 25px height, adding a black background to the white symbol and vice versa
magick Sinnbild_Radfahrer_StVO_1992-200px-white.png -resize x25 -background black -alpha background -flatten -alpha off -verbose Sinnbild_Radfahrer_StVO_1992-25px-white.tga
magick Sinnbild_Radfahrer_StVO_1992-200px-black.png -resize x25 -background white -alpha background -flatten -alpha off -verbose Sinnbild_Radfahrer_StVO_1992-25px-black.tga
```