|
| 1 | +# ***************************************************************************** |
| 2 | +# Graphics assets generation for SyndWarsFX. |
| 3 | +# ***************************************************************************** |
| 4 | +# @file sprites-fontc0-2.am |
| 5 | +# Automake rules neccessary to build `fontc0-2` menu font sprites. |
| 6 | +# Font c0 - font_sharp_cult ltblue. |
| 7 | +# Detail 3 - 15 px height. |
| 8 | +# @author Tomasz Lis |
| 9 | +# @par Copying and copyrights: |
| 10 | +# This program is free software; you can redistribute it and/or modify |
| 11 | +# it under the terms of the GNU General Public License as published by |
| 12 | +# the Free Software Foundation; either version 2 of the License, or |
| 13 | +# (at your option) any later version. |
| 14 | +# ***************************************************************************** |
| 15 | + |
| 16 | +fontc0_2_files = data/fontc0-2.dat data/fontc0-2.tab |
| 17 | + |
| 18 | +# List of font letters which can be colorized |
| 19 | +fontc0_2_chars = \ |
| 20 | + 0021 0022 0023 0024 0025 0026 0027 0028 0029 002a 002b 002c 002d 002e 002f \ |
| 21 | + 0030 0031 0032 0033 0034 0035 0036 0037 0038 0039 003a 003b 003c 003d 003e 003f \ |
| 22 | + 0040 0041 0042 0043 0044 0045 0046 0047 0048 0049 004a 004b 004c 004d 004e 004f \ |
| 23 | + 0050 0051 0052 0053 0054 0055 0056 0057 0058 0059 005a 005b 005c 005d 005e 005f \ |
| 24 | + 0060 0061 0062 0063 0064 0065 0066 0067 0068 0069 006a 006b 006c 006d 006e 006f \ |
| 25 | + 0070 0071 0072 0073 0074 0075 0076 0077 0078 0079 007a 007e \ |
| 26 | + 00a1 00aa 00b0 00bf \ |
| 27 | + 00c0 00c1 00c2 00c3 00c4 00c5 00c7 00c8 00c9 00ca 00cb 00cc 00cd 00ce 00cf \ |
| 28 | + 00d1 00d2 00d3 00d4 00d5 00d6 00d9 00da 00db 00dc 00dd 00df \ |
| 29 | + 00e0 00e1 00e2 00e3 00e4 00e5 00e7 00e8 00e9 00ea 00eb 00ec 00ed 00ee 00ef \ |
| 30 | + 00f1 00f2 00f3 00f4 00f5 00f6 00f9 00fa 00fb 00fc 00fd 00ff \ |
| 31 | + 0104 0105 0106 0107 0118 0119 0141 0142 0143 0144 015a 015b 0179 017a 017b 017c \ |
| 32 | + 2018 2019 |
| 33 | +# List of non-letters or other sprites to pass without colorization |
| 34 | +fontc0_2_charnames_nomod = \ |
| 35 | + empty char_u0020 |
| 36 | +fontc0_2_sprites_gen = \ |
| 37 | + $(foreach num,$(fontc0_2_chars),font_sharp_cult-15-ltblue/char_u$(num).png) |
| 38 | +fontc0_2_sprites_cp = \ |
| 39 | + $(foreach name,$(fontc0_2_charnames_nomod),$(top_srcdir)/font_sharp_cult-15-white/$(name).png) |
| 40 | + |
| 41 | +data/fontc0-2.tab: data/fontc0-2.dat |
| 42 | + |
| 43 | +data/fontc0-2.dat: font_sharp_cult-15-ltblue/filelist-fontc0-2.txt $(top_srcdir)/data/feproj-std.pal $(fontc0_2_sprites_gen) |
| 44 | + |
| 45 | +font_sharp_cult-15-ltblue/filelist-fontc0-2.txt: $(top_srcdir)/font_sharp_cult-15-white/filelist-fontc0-2.txt |
| 46 | + $(MKDIR_P) "$(@D)" |
| 47 | + cp -p -t "$(@D)" $(fontc0_2_sprites_cp) |
| 48 | + cp -p "$<" "$@" |
| 49 | + |
| 50 | +# Use ImageMagick to generate light blue sprites from the white ones |
| 51 | +font_sharp_cult-15-ltblue/%.png: $(top_srcdir)/font_sharp_cult-15-white/%.png |
| 52 | + $(MKDIR_P) "$(@D)" |
| 53 | + $(MAGICK_CONVERT) "$<" -colorspace RGB \ |
| 54 | + -channel R -evaluate multiply 0.66 \ |
| 55 | + -channel G -evaluate multiply 0.53 \ |
| 56 | + -channel B -evaluate multiply 0.99 \ |
| 57 | + +channel -colorspace RGB "$@" |
| 58 | + |
| 59 | +# Extras placed here because we do not need to generate a whole front for them, so does not need its own script |
| 60 | +# Use ImageMagick to generate light green sprites from the white ones |
| 61 | +font_sharp_cult-15-ltgren/%.png: $(top_srcdir)/font_sharp_cult-15-white/%.png |
| 62 | + $(MKDIR_P) "$(@D)" |
| 63 | + $(MAGICK_CONVERT) "$<" -colorspace RGB \ |
| 64 | + -channel R -evaluate multiply 0.88 \ |
| 65 | + -channel G -evaluate multiply 0.92 \ |
| 66 | + -channel B -evaluate multiply 0.86 \ |
| 67 | + +channel -colorspace RGB "$@" |
0 commit comments