1
0
mirror of https://github.com/tacigar/maidroid.git synced 2024-11-18 08:00:25 +01:00
maidroid/scripts/genMaidroidTextures.sh
2016-12-28 12:54:04 +09:00

16 lines
385 B
Bash

#/bin/bash
. ./colors.sh
for ((i=1; i<16; i++)); do
type=$(($i % 3 + 1))
maidroid_type="img/maidroid_type${type}.png"
output="../maidroid/models/maidroid_maidroid_mk${i}.png"
color=${arr[i]}
convert +level-colors $color,White img/maidroid_hair.png img/maidroid_hair_tmp.png
composite img/maidroid_hair_tmp.png $maidroid_type $output
rm img/maidroid_hair_tmp.png
done