aboutsummaryrefslogtreecommitdiff
path: root/gen-pow-imagery
diff options
context:
space:
mode:
authorDavid <dbphillipsnz@gmail.com>2014-05-13 21:17:30 +1200
committerDavid <dbphillipsnz@gmail.com>2014-05-13 21:17:30 +1200
commit574df05b9bd100de623b0a0126d935f513ca0f24 (patch)
treeb452b99b15cea4cd29ddf9fa2a41eb73f40ec1bd /gen-pow-imagery
downloadfractal-gen-574df05b9bd100de623b0a0126d935f513ca0f24.tar.xz
Added all files
Diffstat (limited to 'gen-pow-imagery')
-rwxr-xr-xgen-pow-imagery253
1 files changed, 253 insertions, 0 deletions
diff --git a/gen-pow-imagery b/gen-pow-imagery
new file mode 100755
index 0000000..1d785e3
--- /dev/null
+++ b/gen-pow-imagery
@@ -0,0 +1,253 @@
+#!/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
+}
+
+make_sample 560 50 0.01
+make_sample 560 50 0.02
+make_sample 560 50 0.03
+make_sample 560 50 0.04
+make_sample 560 50 0.05
+make_sample 560 50 0.06
+make_sample 560 50 0.07
+make_sample 560 50 0.08
+make_sample 560 50 0.09
+make_sample 560 50 0.10
+
+make_sample 560 50 0.11
+make_sample 560 50 0.12
+make_sample 560 50 0.13
+make_sample 560 50 0.14
+make_sample 560 50 0.15
+make_sample 560 50 0.16
+make_sample 560 50 0.17
+make_sample 560 50 0.18
+make_sample 560 50 0.19
+
+make_sample 560 50 0.20
+make_sample 560 50 0.21
+make_sample 560 50 0.22
+make_sample 560 50 0.23
+make_sample 560 50 0.24
+make_sample 560 50 0.25
+make_sample 560 50 0.26
+make_sample 560 50 0.27
+make_sample 560 50 0.28
+make_sample 560 50 0.29
+
+make_sample 560 50 0.30
+make_sample 560 50 0.31
+make_sample 560 50 0.32
+make_sample 560 50 0.33
+make_sample 560 50 0.34
+make_sample 560 50 0.35
+make_sample 560 50 0.36
+make_sample 560 50 0.37
+make_sample 560 50 0.38
+make_sample 560 50 0.39
+
+make_sample 560 50 0.40
+make_sample 560 50 0.41
+make_sample 560 50 0.42
+make_sample 560 50 0.43
+make_sample 560 50 0.44
+make_sample 560 50 0.45
+make_sample 560 50 0.46
+make_sample 560 50 0.47
+make_sample 560 50 0.48
+make_sample 560 50 0.49
+
+make_sample 560 50 0.50
+make_sample 560 50 0.51
+make_sample 560 50 0.52
+make_sample 560 50 0.53
+make_sample 560 50 0.54
+make_sample 560 50 0.55
+make_sample 560 50 0.56
+make_sample 560 50 0.57
+make_sample 560 50 0.58
+make_sample 560 50 0.59
+
+make_sample 560 50 0.60
+make_sample 560 50 0.61
+make_sample 560 50 0.62
+make_sample 560 50 0.63
+make_sample 560 50 0.64
+make_sample 560 50 0.65
+make_sample 560 50 0.66
+make_sample 560 50 0.67
+make_sample 560 50 0.68
+make_sample 560 50 0.69
+
+make_sample 560 50 0.70
+make_sample 560 50 0.71
+make_sample 560 50 0.72
+make_sample 560 50 0.73
+make_sample 560 50 0.74
+make_sample 560 50 0.75
+make_sample 560 50 0.76
+make_sample 560 50 0.77
+make_sample 560 50 0.78
+make_sample 560 50 0.79
+
+make_sample 560 50 0.80
+make_sample 560 50 0.81
+make_sample 560 50 0.82
+make_sample 560 50 0.83
+make_sample 560 50 0.84
+make_sample 560 50 0.85
+make_sample 560 50 0.86
+make_sample 560 50 0.87
+make_sample 560 50 0.88
+make_sample 560 50 0.89
+
+make_sample 560 50 0.90
+make_sample 560 50 0.91
+make_sample 560 50 0.92
+make_sample 560 50 0.93
+make_sample 560 50 0.94
+make_sample 560 50 0.95
+make_sample 560 50 0.96
+make_sample 560 50 0.97
+make_sample 560 50 0.98
+make_sample 560 50 0.99
+
+make_sample 560 50 1.00
+make_sample 560 50 1.01
+make_sample 560 50 1.02
+make_sample 560 50 1.03
+make_sample 560 50 1.04
+make_sample 560 50 1.05
+make_sample 560 50 1.06
+make_sample 560 50 1.07
+make_sample 560 50 1.08
+make_sample 560 50 1.09
+
+make_sample 560 50 1.10
+make_sample 560 50 1.11
+make_sample 560 50 1.12
+make_sample 560 50 1.13
+make_sample 560 50 1.14
+make_sample 560 50 1.15
+make_sample 560 50 1.16
+make_sample 560 50 1.17
+make_sample 560 50 1.18
+make_sample 560 50 1.19
+
+make_sample 560 50 1.20
+make_sample 560 50 1.21
+make_sample 560 50 1.22
+make_sample 560 50 1.23
+make_sample 560 50 1.24
+make_sample 560 50 1.25
+make_sample 560 50 1.26
+make_sample 560 50 1.27
+make_sample 560 50 1.28
+make_sample 560 50 1.29
+
+make_sample 560 50 1.30
+make_sample 560 50 1.31
+make_sample 560 50 1.32
+make_sample 560 50 1.33
+make_sample 560 50 1.34
+make_sample 560 50 1.35
+make_sample 560 50 1.36
+make_sample 560 50 1.37
+make_sample 560 50 1.38
+make_sample 560 50 1.39
+
+make_sample 560 50 1.40
+make_sample 560 50 1.41
+make_sample 560 50 1.42
+make_sample 560 50 1.43
+make_sample 560 50 1.44
+make_sample 560 50 1.45
+make_sample 560 50 1.46
+make_sample 560 50 1.47
+make_sample 560 50 1.48
+make_sample 560 50 1.49
+
+make_sample 560 50 1.50
+make_sample 560 50 1.51
+make_sample 560 50 1.52
+make_sample 560 50 1.53
+make_sample 560 50 1.54
+make_sample 560 50 1.55
+make_sample 560 50 1.56
+make_sample 560 50 1.57
+make_sample 560 50 1.58
+make_sample 560 50 1.59
+
+make_sample 560 50 1.60
+make_sample 560 50 1.61
+make_sample 560 50 1.62
+make_sample 560 50 1.63
+make_sample 560 50 1.64
+make_sample 560 50 1.65
+make_sample 560 50 1.66
+make_sample 560 50 1.67
+make_sample 560 50 1.68
+make_sample 560 50 1.69
+
+make_sample 560 50 1.70
+make_sample 560 50 1.71
+make_sample 560 50 1.72
+make_sample 560 50 1.73
+make_sample 560 50 1.74
+make_sample 560 50 1.75
+make_sample 560 50 1.76
+make_sample 560 50 1.77
+make_sample 560 50 1.78
+make_sample 560 50 1.79
+
+make_sample 560 50 1.80
+make_sample 560 50 1.81
+make_sample 560 50 1.82
+make_sample 560 50 1.83
+make_sample 560 50 1.84
+make_sample 560 50 1.85
+make_sample 560 50 1.86
+make_sample 560 50 1.87
+make_sample 560 50 1.88
+make_sample 560 50 1.89
+
+make_sample 560 50 1.90
+make_sample 560 50 1.91
+make_sample 560 50 1.92
+make_sample 560 50 1.93
+make_sample 560 50 1.94
+make_sample 560 50 1.95
+make_sample 560 50 1.96
+make_sample 560 50 1.97
+make_sample 560 50 1.98
+make_sample 560 50 1.99
+
+make_sample 560 50 2.00