From 1744d9dff4f372ed15dada6766a17b05c26e5f33 Mon Sep 17 00:00:00 2001 From: nic-gaffney Date: Thu, 27 Jul 2023 23:10:18 -0500 Subject: formatting --- mandelbrot.py | 23 ----------------------- 1 file changed, 23 deletions(-) delete mode 100644 mandelbrot.py (limited to 'mandelbrot.py') diff --git a/mandelbrot.py b/mandelbrot.py deleted file mode 100644 index 234beb4..0000000 --- a/mandelbrot.py +++ /dev/null @@ -1,23 +0,0 @@ -size = 800.0 -maxVal = 4.0 -maxIter = 50.0 -plane = 4.0 -x = 0; -while x < size: - y = 0; - while y < size: - cReal = (x * plane / size) - 2.0 - cImg = (y * plane / size) - 2.0 - zReal = 0.0 - zImg = 0.0 - count = 0.0 - while (zReal * zReal + zImg * zImg) <= maxVal and count < maxIter: - temp = (zReal * zReal) - (zImg * zImg) + cReal - zImg = 2.0 * zReal * zImg + cImg - zReal = temp - count = count + 1.0 - if count == maxIter: - print(f"\x1b[{x};{y}H", end="") - print("█", end="") - y = y + 1 - x = x + 1 -- cgit v1.2.3