aboutsummaryrefslogtreecommitdiffstats
path: root/doughnut2.py
blob: 2aa3eeca7edeb48d21f73135b3dd1bba43ef3cec (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
ᅠ                  ,A,sin,cos,B,P=\
               (lambda m,n:([print(("")
            +"\x1b[H\n"+P(b))for(b)in[[(fn
         (),b)for(z)in[80*0x30*[0]]for(b)in[
      list(B)]for((o),(D),N) in[(o,D,N)for(j)in
     range(0,628,4)for(i)in(range(0,628,2))for c,
    d,e,f,g in[(S[i],C[j],S[j],C[i],C[j]+2)]for(D,
   t)in[(1/(c*g*n+e*m+5), (c*g*m-e*n))]for(x,y)in[(
  int(40+30*D*(f*g*m-t*n)),int(24+30*D*(f*g*n+t*m)))
 ]for(o,N)in[(x*2+160*(y>>1)+(y&1),int(16*(m*(e*n-c*d
 *m-e)-(c+f)*d*n)))]]if(      D)>z[o]for (fn)in[lambda
:z.__setitem__(o, D),           lambda:b.__setitem__(o,
0o351+max(N,0x0))]][              0][1]]]and.05+A),0x00,
__import__("math").                sin,__import__("math"
).cos,24*(0x9e*' '+                '\n\n'),(lambda b:''
.join((c[0]if(c:=b[y              *0xa0+x*2:][:2])[0]==
"\n"or(c [0])==c[1]==             chr(32)else"\x1b[38"+
";5;%im▄\x1b[m"%c [1]if        c[0]==" "else"\x1b[38"+
 ";5;%im▀\x1b[m"%c[0]if" " ==c[1]else("\x1b[48;5;%i"+
  ";38;5;%im▄\x1b[m")%(c[0],c[1]))for(y)in(range(24))
   for(x)in range(0x50))));(S,C)=[sin(i/100)for(i)in
    range(0,628)],[cos(i/0x64)for(i)in range(0,628)
     ];print("\x1b["+"2J");any(__import__("time").
       sleep(.025)for(X)in __import__("itertools"+
        ("")).repeat(0)if(A:=ᅠ(cos(A),sin(A))))
             ##############################
             ####### Mattias Andrée #######
                ######### 2023 #########
                     #############