I added comments to some .hexplt files in _ebPalettes, and have begun to support this in scripts, but just found that it breaks BWsvgRandomColorFill.sh. (A created array contains comments.) All these scripts have paletteFile variables that may also be candidates for fixing:
BWsvgRandomColorFill.sh
color_growth_hexplts_multiColor_Ntimes.sh
color_growth_hexplt_multiColor.sh
findPalette.sh
hexplt2ppm.sh
hexplt2ppmHEX.sh
hexplt2rgbplt.sh
renderHexPalette.sh
rgbplt2hexplt.sh
color_growth_hexplt.sh
palette_combinatronics.py
The fix for bash scripts is to grep the hex RGB pattern; see renderHexPalette.sh:
# get array of colors from file by extracting all matches of a pattern of six hex digits preceded by a #:
colorsArray=( $(grep -i -o '#[0-9a-f]\{6\}' $hexPaletteFileName | tr -d '#') )
I added comments to some
.hexpltfiles in_ebPalettes, and have begun to support this in scripts, but just found that it breaksBWsvgRandomColorFill.sh. (A created array contains comments.) All these scripts havepaletteFilevariables that may also be candidates for fixing:The fix for bash scripts is to
grepthe hex RGB pattern; seerenderHexPalette.sh: