diff options
Diffstat (limited to 'mandelbrot.py')
| -rw-r--r-- | mandelbrot.py | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/mandelbrot.py b/mandelbrot.py deleted file mode 100644 index 82aa65c..0000000 --- a/mandelbrot.py +++ /dev/null @@ -1,22 +0,0 @@ -size = 200 - -# constants: -MaxValue = 4 -MaxIterations = 50 -planeWidth = 4 - -for x in range(0, size): - for y in range(0, size): # for each pixel do: - cReal = (x * planeWidth / size) - 2 - cImg = (y * planeWidth / size) - 2 - zReal = 0 - zImg = 0 - count = 0 - while (zReal*zReal + zImg*zImg) <= MaxValue and count < MaxIterations: - temp = (zReal * zReal) - (zImg * zImg) + cReal - zImg = 2 * zReal * zImg + cImg - zReal = temp - count += 1 - - if count == MaxIterations: - print(f"\x1b[{x};{y}H*") |
