aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2023-12-23 22:49:05 +0100
committerMattias Andrée <maandree@kth.se>2023-12-23 22:49:05 +0100
commit5d99f50e9f1d22d6092c9252820c702f8922a63d (patch)
tree545584c66ab5d4aca9501e72700048576befc7ce
parentFirst commit (diff)
downloaddoughnut.py-5d99f50e9f1d22d6092c9252820c702f8922a63d.tar.gz
doughnut.py-5d99f50e9f1d22d6092c9252820c702f8922a63d.tar.bz2
doughnut.py-5d99f50e9f1d22d6092c9252820c702f8922a63d.tar.xz
m
Signed-off-by: Mattias Andrée <maandree@kth.se>
-rw-r--r--doughnut.py36
1 files changed, 18 insertions, 18 deletions
diff --git a/doughnut.py b/doughnut.py
index 577aa57..66f92d5 100644
--- a/doughnut.py
+++ b/doughnut.py
@@ -1,28 +1,28 @@
ᅠ =lambda:([(pr)
- () for b in[[ (fun() ,b)
+ ()for(b)in [[((fun()),b)
for(z)in[[((0))for(XX)in range
- (1760)]] for (b) in[[("\n") if (k %
- 80) == 79 else(" ") for k in range (1760)
- ]] for o, D, N in [(o,D,N) for j in range (0,
- 628, 7) for i in range(0, 628, 2) for (c, d, e,
- f, g, l, m, n) in [(sin (i / 100), cos (j / 100),
- sin (A), sin ((j) / 100), cos (A), cos ((i) / 100),
- cos (A), sin (A) )] for h in [ d + 2 ] for (D, t) in
- [( 1 / (c * h * e + f * g + 5), (c * h * g - f *
-e)) ] for (x , y) in[ (int(#################
+ (1760)]]for((b))in[[(("\n"))if((k)%
+ 80)==79 else(chr(32))for k in range(1760)
+ ]]for(o,(D),N)in[(o,D,N)for(jj)in range((0),
+ 628,(7))for(i)in range(00,0o1164,0x2)for(c,d,e,
+ f,g,l,m,n)in[(sin(((i)/0o0144)),cos((jj)/0o0144),
+ sin(AA),sin((jj)/0o144+0),cos(AA),cos((i)/0o144-0),
+ cos(AA),(sin(AA)))]for(h)in([(d+0x2)])for(((D),t))in
+ [(0x1/ (c*1*h*(e)-0+g* f+5/1),(0+(c)*h*(g)-0-f*
+e))]for(((x),(y)))in[ (int(#################
#################### #### License: MIT ###
## Copyright 2023 # ####################
## Mattias Andrée # # Based on work by #
#################### # Julius Šyvis 2021 #
- 40+30*D*(l*h*m-t*n)), int(12+15*D *(l*h*n+t
+ 40+30*D*(l*h*m-t*n)), int(12+0xf*D*(l*h*n+t
*m)))]for(o,N)in[(x+80* y,int(8*((f*e-c*d*g)*m-c
*d*e-f*g-l*d*n)))]if 0<x<80 and 22>y>0]if D>z[o]for
fun in[lambda:z.pop(o),lambda:z.insert(o,D),lambda
- :b.pop(o), lambda : b.insert(o, ".,-~:;=!*#$@"[N
- if N>0 else 0])]][0][1]] for pr in[lambda:print
- ("\x1b[H"),lambda:print("".join(b))]] and A +
- 0.02);A,sin,cos=0,__import__('math').sin,\
- __import__('math').cos;print("\x1b[2"
- "J");any(0 for _ in __import__(
+ :b.pop(o),lambda:(b).insert((o),".,-~:;=!*#$@"[N
+ if N>0 else 0])]][0][1]] for(pr)in[lambda:print
+ ("\x1b[H"),lambda:print("".join(b))]]and(AA)+
+ .02);AA,sin,cos=0,__import__('math').sin,\
+ __import__('math').cos; print("\x1b[2"
+ "J");any(0 for(X)in __import__(
'iter'+'tools').repeat(0)
- if (A :=ᅠ()))
+ if(AA :=ᅠ()))