diff options
| author | nic-gaffney <gaffney_nic@protonmail.com> | 2023-07-27 23:10:18 -0500 |
|---|---|---|
| committer | nic-gaffney <gaffney_nic@protonmail.com> | 2023-07-27 23:10:18 -0500 |
| commit | 1744d9dff4f372ed15dada6766a17b05c26e5f33 (patch) | |
| tree | 53725c63230aa294a5a580981e529d06e84b3ea3 /mandelbrot.py | |
| parent | ad85abc2db9ed35a2e3cf6ab18573de135ee9a5c (diff) | |
| download | sloth-1744d9dff4f372ed15dada6766a17b05c26e5f33.tar.gz | |
formatting
Diffstat (limited to 'mandelbrot.py')
| -rw-r--r-- | mandelbrot.py | 23 |
1 files changed, 0 insertions, 23 deletions
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 |
