19 lines
840 B
Bash
Executable file
19 lines
840 B
Bash
Executable file
#!/bin/bash
|
|
# Renders the Singe and Kangaroo Punch logos from their layered sources in assets/ into demos/art/,
|
|
# at the demos' width, for the cards every demo opens and closes with (demos/kit.lua, K.run). The
|
|
# command is the one CMakeLists.txt renders the embedded copies with, then scaled down once here so
|
|
# the demos draw them without scaling. The closing card leaves out the Kangaroo Punch logo's
|
|
# "Proudly Presents..." line, layer 1: nothing follows it.
|
|
set -euo pipefail
|
|
|
|
REPO=$(cd "$(dirname "$0")/.." && pwd)
|
|
SIZE=1920x1080
|
|
FIT=640x360
|
|
|
|
render() {
|
|
convert -background "rgba(0,0,0,0)" -size $SIZE xc:none "$1" -flatten -resize $FIT "$2"
|
|
}
|
|
|
|
mkdir -p "$REPO/demos/art"
|
|
render "$REPO/assets/singeLogo.xcf" "$REPO/demos/art/singeLogo.png"
|
|
render "$REPO/assets/kangarooPunchLogo.xcf[0,2,3]" "$REPO/demos/art/kangarooPunchLogo.png"
|