-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Labels
2 - majorthis breaks essential functionality pls pls fix kthxbaithis breaks essential functionality pls pls fix kthxbai
Description
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 '#') )
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
2 - majorthis breaks essential functionality pls pls fix kthxbaithis breaks essential functionality pls pls fix kthxbai
Projects
Status
in progress