Geocrack

Donut

Jun 26th, 2022
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.99 KB | None | 0 0
  1. import math
  2. A, B = 0, 0
  3. while True:
  4.     z = [0] * 1760
  5.     b = [' '] * 1760
  6.     for j in range(0, 628, 7):
  7.         for i in range(0, 628, 2):
  8.             c = math.sin(i)
  9.             d = math.cos(j)
  10.             e = math.sin(A)
  11.             f = math.sin(j)
  12.             g = math.cos(A)
  13.             h = d + 2
  14.             D = 1 / (c * h * e + f * g + 5)
  15.             l = math.cos(i)
  16.             m = math.cos(B)
  17.             n = math.sin(B)
  18.             t = c * h * g - f * e
  19.             x = int(40 + 30 * D * (l * h * m - t * n))
  20.             y = int(12 + 15 * D * (l * h * n + t * m))
  21.             o = int(x + 80 * y)
  22.             N = int(8 * ((f * e - c * d * g) * m - c * d * e - f * g - l * d * n))
  23.             if 22 > y and y > 0 and x > 0 and 80 > x and D > z[o]:
  24.                 z[o] = D
  25.                 b[o] = ".,-~:;=!*#$@"[N if N > 0 else 0]
  26.     print('\x1b[H', end='')
  27.     for k in range(1761):
  28.         print((b[k] if k % 80 else '\n'), end='')
  29.         A += 0.00004
  30.         B += 0.00002
Advertisement
Add Comment
Please, Sign In to add comment