From b1c2832d923296b7e3964aa9127b80fa4d3c0099 Mon Sep 17 00:00:00 2001 From: David Date: Thu, 15 May 2014 14:50:54 +1200 Subject: Renamed file --- gen-pow-imagery | 37 ------------------------------------- generate-pow-imagery | 37 +++++++++++++++++++++++++++++++++++++ 2 files changed, 37 insertions(+), 37 deletions(-) delete mode 100755 gen-pow-imagery create mode 100755 generate-pow-imagery diff --git a/gen-pow-imagery b/gen-pow-imagery deleted file mode 100755 index 4906933..0000000 --- a/gen-pow-imagery +++ /dev/null @@ -1,37 +0,0 @@ -#!/bin/sh - -OUT_DIR="pow_imagery" - -mkdir -p $OUT_DIR - - - -make_sample () { - N="$1-$2-$3pow" - - if [ -e $OUT_DIR/$N.png ]; then - echo $OUT_DIR/$N : Already exists, skipping. - else - # Configure the generator - echo unsigned int SIZE=$1\;unsigned int ITERATIONS=$2\;float POWER=$3\; > config.c - make config - - # Generate raw data - ./mbrot-gen > $OUT_DIR/$N.raw - - # Make normal colour image - ./raw-to-png $OUT_DIR/$N.raw $1 $1 - mv 0,0.png $OUT_DIR/$N.png - - # Make (hypnotic) bw image to show boundaries clearly - ./raw-to-png-bw $OUT_DIR/$N.raw $1 $1 - mv 0,0.png $OUT_DIR/$N-bw.png - - rm $OUT_DIR/$N.raw - fi -} - -for pow in $(seq 0.01 0.01 2); do - make_sample 560 50 $pow -done - diff --git a/generate-pow-imagery b/generate-pow-imagery new file mode 100755 index 0000000..4906933 --- /dev/null +++ b/generate-pow-imagery @@ -0,0 +1,37 @@ +#!/bin/sh + +OUT_DIR="pow_imagery" + +mkdir -p $OUT_DIR + + + +make_sample () { + N="$1-$2-$3pow" + + if [ -e $OUT_DIR/$N.png ]; then + echo $OUT_DIR/$N : Already exists, skipping. + else + # Configure the generator + echo unsigned int SIZE=$1\;unsigned int ITERATIONS=$2\;float POWER=$3\; > config.c + make config + + # Generate raw data + ./mbrot-gen > $OUT_DIR/$N.raw + + # Make normal colour image + ./raw-to-png $OUT_DIR/$N.raw $1 $1 + mv 0,0.png $OUT_DIR/$N.png + + # Make (hypnotic) bw image to show boundaries clearly + ./raw-to-png-bw $OUT_DIR/$N.raw $1 $1 + mv 0,0.png $OUT_DIR/$N-bw.png + + rm $OUT_DIR/$N.raw + fi +} + +for pow in $(seq 0.01 0.01 2); do + make_sample 560 50 $pow +done + -- cgit v1.1