Generate additional image credits

This commit is contained in:
2024-11-07 12:30:49 -06:00
parent a725dc606a
commit 7c209714b0
6 changed files with 55 additions and 0 deletions

27
pkg/credits/credits.txt Normal file
View File

@@ -0,0 +1,27 @@
Open Blades of Exile
Maintenance:
- NQNStudios
Not confirmed:
- CelticMinstrel
- sylae
- Menshin
- fosnola
- evan-erdos
- daerogami
- akien-mga
- MaddTheSane
- ultraboe
- murlock
- absquatulate
- catphive
- redsaurus
- retropipes
- seisatsu
- x-qq
Art:
- ???

BIN
pkg/credits/startanim1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB

BIN
pkg/credits/startanim3.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

9
pkg/generate-credits.sh Normal file
View File

@@ -0,0 +1,9 @@
#!/bin/bash
# Call this manually every time DONORS.md or pkg/credits/credits.txt
# changes, and commit the generated files.
# Requires:
# - ImageMagick
# - Rollout font
# Usage: generate-credits.sh

19
pkg/get-credits.sh Executable file
View File

@@ -0,0 +1,19 @@
#!/bin/bash
names=$(grep ^\* DONORS.md)
name_count=$(echo "$names" | wc -l)
# For clear text, render higher point size at higher density
font_size=8
spacing=0
actual_line_size=$((font_size + spacing + 7))
first_line_offset=$((font_size + 2))
height=$((actual_line_size * name_count))
# https://www.dafont.com/pix-chicago.font
# TODO calculate line height
magick convert -size 280x$height xc:transparent \
-stroke black -pointsize $font_size -interline-spacing $spacing \
-kerning 1 -font pix-Chicago -annotate +0+$first_line_offset "$names" \
startanim2.png

BIN
pkg/pixChicago-edited.ttf Normal file

Binary file not shown.