Skip to content

ensure hexplt2ppm.sh works with hexplt format files that have comments #131

@earthbound19

Description

@earthbound19

use this updated code from renderHexPalette.sh that gets all hex codes whatever else is around them:

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}' $hexColorSrcFullPath | tr -d '#') ) # tr command removes pound symbol, and surrounding () makes it an actual array

Get number of colors (from array):

numColors=${#colorsArray[@]}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    Status

    in progress

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions