From 1704088618e55ceeaf087f18f16d0070d8617dd0 Mon Sep 17 00:00:00 2001 From: David Phillips Date: Mon, 27 Feb 2017 14:59:19 +1300 Subject: Add new demo image with high detail --- README.md | 2 +- create-demo.sh | 20 ++++++++++---------- demo-high-iterat.png | Bin 0 -> 5758 bytes demo-low-iterat.png | Bin 0 -> 37208 bytes demo.png | Bin 37208 -> 0 bytes 5 files changed, 11 insertions(+), 11 deletions(-) create mode 100644 demo-high-iterat.png create mode 100644 demo-low-iterat.png delete mode 100644 demo.png diff --git a/README.md b/README.md index 75b1004..b86513a 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,7 @@ Below is a simple demo image produced with the software. It is a simple mandelbrot fractal using only 75 iterations, at 768 square pixels. The image is a negative of that which comes straight from the software. -![Demo mandelbrot image](./demo.png) +![Demo mandelbrot image with few iterations](./demo-low-iterat.png) Such a small, low-detail image will not provide a case for using GPU rather than CPU, but once you start upping the image size and detail, a modern GPU diff --git a/create-demo.sh b/create-demo.sh index 8cf9055..a341eb4 100755 --- a/create-demo.sh +++ b/create-demo.sh @@ -1,22 +1,22 @@ #!/bin/sh -final_name="demo.png" temp_name="demo.tmp.pgm" clean() { rm -v "$temp_name" } +create_demo() { + echo "::: Invoking fractal-gen through pnminvert for negative PGM image" + ./fractal-gen -p any -s "$1" -i "$2"| pnminvert > "$temp_name" + echo "::: Invoking ImageMagick to convert to PNG" + convert "$temp_name" "$3" + echo "::: Success. Final image is $3" +} + hash pnminvert || exit hash convert || exit trap clean exit -echo "::: Invoking fractal-gen through pnminvert for negative PGM image" - -./fractal-gen -p any -s 768 -i 75 | pnminvert > "$temp_name" - -echo "::: Invoking ImageMagick to convert to PNG" - -convert "$temp_name" "$final_name" - -echo "::: Success. Final image is $final_name" +create_demo 768 75 demo-low-iterat.png +create_demo 768 10000000 demo-high-iterat.png diff --git a/demo-high-iterat.png b/demo-high-iterat.png new file mode 100644 index 0000000..a33229b Binary files /dev/null and b/demo-high-iterat.png differ diff --git a/demo-low-iterat.png b/demo-low-iterat.png new file mode 100644 index 0000000..80d2087 Binary files /dev/null and b/demo-low-iterat.png differ diff --git a/demo.png b/demo.png deleted file mode 100644 index 5c5a11f..0000000 Binary files a/demo.png and /dev/null differ -- cgit v1.1