scripts

misc scripts and tools
git clone git://git.2f30.org/scripts
Log | Files | Refs

commit d00254b0e3cd940cd4d185b7435000e9cbadbbb3
parent 945a3655cf9ba1bd0e5cd4ec9e596916d457fbb3
Author: lostd <lostd@2f30.org>
Date:   Sat, 14 Dec 2013 13:05:26 +0200

Fuck bc and use perl, lowercase hex is cleaner, correct gray mask

Diffstat:
Mpuffy/puffy.sh | 11+++++++----
1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/puffy/puffy.sh b/puffy/puffy.sh @@ -6,13 +6,16 @@ SRC=tshirt-23.gif DST=puffy.png -COLOR=00FFFF # tron like -COLOR=00FF00 # true green -COLORNEG=$(echo "obase=16; ibase=16; FFFFFF - $COLOR" | bc) -GRAY=474747 # this is the bg val after grayscale + +COLOR=00ffff # tron like +COLOR=00ff00 # true green GEOM=646x710 # with openbsd text GEOM=646x610 # without the text +# prepare colors +GRAY=3f3f3f # this is the bg val after grayscale +COLORNEG=$(perl -e "printf \"%x\n\", 0xffffff - 0x$COLOR") + # prepare masks convert -size $GEOM xc:#$GRAY gray.png convert -size $GEOM xc:#$COLORNEG colorneg.png