Initial commit
This commit is contained in:
15
tools/clangd.zsh
Executable file
15
tools/clangd.zsh
Executable file
@@ -0,0 +1,15 @@
|
||||
#!/usr/bin/env zsh
|
||||
echo "CompileFlags:
|
||||
Add:
|
||||
[
|
||||
-xc,
|
||||
-nostdinc,
|
||||
-DPBL_COLOR,
|
||||
-I${HOME}/.pebble-sdk/SDKs/current/sdk-core/pebble/emery/include,
|
||||
-include/home/cuan/gitrepos/Maan-On-My-Wrist-XL/build/include/message_keys.auto.h,
|
||||
-I$(pwd)/build/emery,
|
||||
-include${HOME}/.pebble-sdk/SDKs/current/toolchain/arm-none-eabi/arm-none-eabi/include/stdint.h,
|
||||
-include${HOME}/.pebble-sdk/SDKs/current/toolchain/arm-none-eabi/arm-none-eabi/include/stdlib.h,
|
||||
-include${HOME}/.pebble-sdk/SDKs/current/toolchain/arm-none-eabi/lib/gcc/arm-none-eabi/14.2.1/include/stddef.h,
|
||||
-include${HOME}/.pebble-sdk/SDKs/current/toolchain/arm-none-eabi/lib/gcc/arm-none-eabi/14.2.1/include/stdbool.h,
|
||||
]" > ./.clangd
|
||||
33
tools/magick.zsh
Executable file
33
tools/magick.zsh
Executable file
@@ -0,0 +1,33 @@
|
||||
#!/usr/bin/env zsh
|
||||
|
||||
# THIS IS A LEGACY TOOL THAT WAS USED FOR THE INITIAL
|
||||
# ASSET EXTRACTION - ASSETS HAVE SINCE BEEN HEAVILY
|
||||
# MODIFIED, MAKING THIS SCRIPT PRETTY USELESS
|
||||
|
||||
if [[ $# -lt 2 ]]; then
|
||||
echo "Usage: $0 <dir> <half (top/bottom)>"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [[ $2 == "top" ]]; then
|
||||
gravity="South"
|
||||
elif [[ $2 == "bottom" ]]; then
|
||||
gravity="North"
|
||||
else
|
||||
echo "Usage: $0 <dir> <half (top/bottom)>"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
for file in $1/*; do
|
||||
magick "$file" -gravity $gravity -chop 0x10 "$file"
|
||||
magick "$file" -transparent Black PNG24:"$file"
|
||||
magick "$file" -fill "rgb(0,255,0)" -opaque White "$file"
|
||||
magick "$file" -gravity Center -background None -compose Copy -extent 260x $file
|
||||
# Bar is commented out for an experiment with rendering in real time on the watch
|
||||
#magick "$file" -gravity $gravity -background White -splice 0x15 $file
|
||||
if [[ $2 == "top" ]]; then
|
||||
magick "$file" -gravity North -background None -splice 0x41 $file
|
||||
else
|
||||
magick "$file" -gravity South -background None -splice 0x41 $file
|
||||
fi
|
||||
done
|
||||
7
tools/zopfli.zsh
Executable file
7
tools/zopfli.zsh
Executable file
@@ -0,0 +1,7 @@
|
||||
#!/usr/bin/env zsh
|
||||
|
||||
# ALWAYS USE ZOPFLI TO CRUSH PNGS AS MUCH AS POSSIBLE BEFORE SHIPPING
|
||||
|
||||
for file in **/*; do
|
||||
zopflipng -y --iterations=500 --filters=01234mepb --lossy_8bit --lossy_transparent $file $file &
|
||||
done
|
||||
Reference in New Issue
Block a user