-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest-color-mapper.sh
More file actions
executable file
·54 lines (44 loc) · 1.17 KB
/
test-color-mapper.sh
File metadata and controls
executable file
·54 lines (44 loc) · 1.17 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
52
53
54
#!/bin/bash
# Build the binary once
echo "Building omt-color-mapper..."
cargo build --release --bin omt-color-mapper
if [ $? -ne 0 ]; then
echo "Build failed!"
exit 1
fi
echo ""
echo "Running color mapper for all target palettes..."
echo ""
# Source palette and input image
SOURCE_PAL="color-mapper-source_pal-bronze.png"
INPUT="color-mapper-input.png"
# Array of target palettes
TARGET_PALS=(
"bronze"
"silver"
"gold"
"diamond"
"ruby"
)
# Run for each target palette
for target in "${TARGET_PALS[@]}"; do
TARGET_PAL="color-mapper-target_pal-${target}.png"
OUTPUT="color-mapper-output-${target}.png"
echo "Processing: bronze -> ${target}"
echo " Source: ${SOURCE_PAL}"
echo " Target: ${TARGET_PAL}"
echo " Output: ${OUTPUT}"
./target/release/omt-color-mapper map \
--source-pal "${SOURCE_PAL}" \
--target-pal "${TARGET_PAL}" \
--input "${INPUT}" \
--output "${OUTPUT}"
if [ $? -eq 0 ]; then
echo " ✓ Success"
else
echo " ✗ Failed"
fi
echo ""
done
echo "Done! Generated outputs:"
ls -lh color-mapper-output-*.png 2>/dev/null || echo "No output files found"