-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsprites-fontc6-0.am
More file actions
51 lines (45 loc) · 2.28 KB
/
Copy pathsprites-fontc6-0.am
File metadata and controls
51 lines (45 loc) · 2.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# *****************************************************************************
# Graphics assets generation for SyndWarsFX.
# *****************************************************************************
# @file sprites-fontc6-0.am
# Automake rules neccessary to build `fontc6-0` mission font sprites.
# Font c6 - bulky_corpo white.
# Detail 1 - 10 px height.
# @author Tomasz Lis
# @par Copying and copyrights:
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
# *****************************************************************************
fontc6_0_files = data/fontc6-0.dat data/fontc6-0.tab
# List of font letters which can be colorized
fontc6_0_chars = \
0041 0042 0043 0044 0045 0046 0047 0048 0049 004a 004b 004c 004d 004e 004f \
0050 0051 0052 0053 0054 0055 0056 0057 0058 0059 005a
# List of non-letters or other sprites to pass without colorization
fontc6_0_charnames_nomod = \
empty char_u0020
fontc6_0_sprites_gen = \
$(foreach num,$(fontc6_0_chars),font_bulky_corpo-5-shd-white/char_u$(num).png)
fontc6_0_sprites_cp = \
$(foreach name,$(fontc6_0_charnames_nomod),$(top_srcdir)/font_bulky_corpo-5-white/$(name).png)
data/fontc6-0.tab: data/fontc6-0.dat
data/fontc6-0.dat: font_bulky_corpo-5-shd-white/filelist-fontc6-0.txt $(top_srcdir)/data/engine-std.pal $(fontc6_0_sprites_gen)
font_bulky_corpo-5-shd-white/filelist-fontc6-0.txt: $(top_srcdir)/font_bulky_corpo-5-white/filelist-fontc6-0.txt
$(MKDIR_P) "$(@D)"
cp -p -t "$(@D)" $(fontc6_0_sprites_cp)
cp -p "$<" "$@"
# Use ImageMagick to generate shaded white sprites from the plain white ones
font_bulky_corpo-5-shd-white/%.png: $(top_srcdir)/font_bulky_corpo-5-white/%.png
$(MKDIR_P) "$(@D)"
$(MAGICK_CONVERT) "$<" \
"$<" -gravity Center -geometry +0+1 -composite \
"$<" -gravity Center -geometry +1+1 -composite \
-colorspace RGB \
-channel R -evaluate multiply 0.53 \
-channel G -evaluate multiply 0.53 \
-channel B -evaluate multiply 0.53 \
+channel \
"$<" -gravity Center -geometry +0+0 -composite \
-colorspace RGB "png32:$@"