Skip to content

Commit 570a5d4

Browse files
committed
add leagues and races icons plus gen.sh
1 parent d10e81a commit 570a5d4

File tree

12 files changed

+51
-0
lines changed

12 files changed

+51
-0
lines changed

leagues/gen.sh

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
#!/bin/bash
2+
#
3+
# (Re-)Generates various sizes of the league icons from their base
4+
# Also creates bw versions (base should be colored)
5+
6+
mkdir -p plain
7+
8+
for w in 16 32 48 64; do
9+
h=$w
10+
11+
for k in plain-color/*png; do
12+
13+
filename=$(basename "$k")
14+
extension="${filename##*.}"
15+
filename="${filename%.*}"
16+
17+
echo "$k -> plain/$filename\-$w.png ($w x $h)"
18+
19+
convert $k -resize $w\x$h plain/$filename\-$w\-color.png
20+
21+
convert $k -colorspace Gray -black-threshold 90% -contrast -resize $w\x$h plain/$filename\-$w.png
22+
23+
convert plain/$filename\-$w.png -negate plain/$filename\-$w\-white.png
24+
#exit
25+
done
26+
done

leagues/plain-color/bronze.png

2.54 KB
Loading

leagues/plain-color/diamond.png

2.45 KB
Loading

leagues/plain-color/gold.png

3.03 KB
Loading

leagues/plain-color/grandmaster.png

2.64 KB
Loading

leagues/plain-color/master.png

2.21 KB
Loading

leagues/plain-color/platinum.png

2.57 KB
Loading

leagues/plain-color/silver.png

2.82 KB
Loading

races/gen.sh

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
#!/bin/bash
2+
#
3+
# (Re-)Generates various sizes of the race icons from their base image
4+
# Also creates inverted versions (base should be black)
5+
#
6+
# Specify size as first argument, final result will be in icons/<size>/
7+
8+
mkdir -p plain
9+
10+
for w in 16 24 32 48 64; do
11+
h=$w
12+
13+
for k in *png; do
14+
15+
filename=$(basename "$k")
16+
extension="${filename##*.}"
17+
filename="${filename%.*}"
18+
19+
echo "$k -> plain/$filename\-$w.png ($w x $h)"
20+
21+
convert $k -colorspace Gray -black-threshold 90% -contrast -resize $w\x$h -unsharp 0x1 plain/$filename\-$w.png
22+
convert plain/$filename\-$w.png -negate plain/$filename\-$w\-white.png
23+
#exit
24+
done
25+
done

races/protoss.png

26.4 KB
Loading

0 commit comments

Comments
 (0)