From: Armaan Bhojwani Date: Sat, 9 Jan 2021 03:57:02 +0000 (-0500) Subject: Specify fill="none" for transparency in SVG X-Git-Url: https://git.armaanb.net/?p=logo.git;a=commitdiff_plain;h=2b9c5579d244487f213f529c8117722794ee3974 Specify fill="none" for transparency in SVG --- diff --git a/svg2img b/svg2img index 9c1eba6..e632960 100755 --- a/svg2img +++ b/svg2img @@ -11,39 +11,39 @@ if [[ (! -d "square/svg" || ! -d "circle/svg") || (${1} == "svg") ]]; then mkdir -pv ${SHAPE}/svg sed -e 's/STROKE/stroke="#00ffbf" /g' \ - -e 's/FILL/ fill="#212121"/g' template/${SHAPE}.svg \ + -e 's/FILL/#212121/g' template/${SHAPE}.svg \ > ${SHAPE}/svg/logo-${SHAPE}-color-dark.svg sed -e 's/STROKE/stroke="#00ffbf" /g' \ - -e 's/FILL/ fill="#fff"/g' template/${SHAPE}.svg \ + -e 's/FILL/#fff/g' template/${SHAPE}.svg \ > ${SHAPE}/svg/logo-${SHAPE}-color-white.svg sed -e 's/STROKE/stroke="#00ffbf" /g' \ - -e 's/FILL//g' template/${SHAPE}.svg \ + -e 's/FILL/none/g' template/${SHAPE}.svg \ > ${SHAPE}/svg/logo-${SHAPE}-color-trans.svg sed -e 's/STROKE/stroke="#212121" /g' \ - -e 's/FILL/ fill="#00ffbf"/g' template/${SHAPE}.svg \ + -e 's/FILL/#00ffbf/g' template/${SHAPE}.svg \ > ${SHAPE}/svg/logo-${SHAPE}-dark-color.svg sed -e 's/STROKE/stroke="#212121" /g' \ - -e 's/FILL/ fill="#fff"/g' template/${SHAPE}.svg \ + -e 's/FILL/#fff/g' template/${SHAPE}.svg \ > ${SHAPE}/svg/logo-${SHAPE}-dark-white.svg sed -e 's/STROKE/stroke="#212121" /g' \ - -e 's/FILL//g' template/${SHAPE}.svg \ + -e 's/FILL/none/g' template/${SHAPE}.svg \ > ${SHAPE}/svg/logo-${SHAPE}-dark-trans.svg sed -e 's/STROKE/stroke="#fff" /g' \ - -e 's/FILL/ fill="#00ffbf"/g' template/${SHAPE}.svg \ + -e 's/FILL/#00ffbf/g' template/${SHAPE}.svg \ > ${SHAPE}/svg/logo-${SHAPE}-white-color.svg sed -e 's/STROKE/stroke="#fff" /g' \ - -e 's/FILL/ fill="#212121"/g' template/${SHAPE}.svg \ + -e 's/FILL/#212121/g' template/${SHAPE}.svg \ > ${SHAPE}/svg/logo-${SHAPE}-white-dark.svg sed -e 's/STROKE/stroke="#fff" /g' \ - -e 's/FILL//g' template/${SHAPE}.svg \ + -e 's/FILL/none/g' template/${SHAPE}.svg \ > ${SHAPE}/svg/logo-${SHAPE}-white-trans.svg done fi diff --git a/template/circle.svg b/template/circle.svg index 7eaab61..5210884 100644 --- a/template/circle.svg +++ b/template/circle.svg @@ -1,6 +1,6 @@ - + diff --git a/template/square.svg b/template/square.svg index 2f254cb..8241d93 100644 --- a/template/square.svg +++ b/template/square.svg @@ -1,6 +1,6 @@ - +