| #!/bin/bash |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| function render_svg_convertGplToHex { |
| |
| |
| |
| local PALETTE_GPL="$1" |
| |
| |
| |
| local PALETTE_HEX="$2" |
| |
| |
| local NUMBER="$3" |
| |
| |
| local COLORS=$(render_svg_getColors $PALETTE_GPL --head=$NUMBER --tail=$NUMBER) |
| |
| |
| |
| |
| |
| render_svg_checkColorAmount "$COLORS" "$NUMBER" |
| |
| |
| render_svg_checkColorFormats "$COLORS" --format='rrggbb' |
| |
| |
| echo "$COLORS" | nl | awk '{ printf "%s=%d ", $2, $1 - 1 }' \ |
| > $PALETTE_HEX |
| |
| |
| cli_checkFiles $PALETTE_HEX |
| |
| } |