Last active
February 18, 2022 20:16
-
-
Save aflaag/ff0f14298fee5f26794aefd59871adad to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from math import sqrt as Z;print("\n".join(map(lambda t:"".join(t[1])if t[0]!=4 else"".join(t[1][:24])+"".join(map(lambda x:chr(ord(x)-3),"ud|#wudfhg#dvfll/#e|#skdqwdvp#?6"))+"".join(t[1][-24:]),enumerate([[" .\'`^\",:;Il!i><~+_-?][}{1)(|\\/tfjrxnuvczXYUJCLQ0OZmwqpdbkhao*#MW&8%B@$"[int((0.299*B(I[1][0])+0.587*B(I[1][1])+0.114*B(I[1][2]))*sum([k[0]*(n if(n:=sum([x*y for x,y in zip(N,L)]))>0 else 0)/Z(sum([x*x for x in N])*sum([x*x for x in L]))for k in[(0.6,(2,1,0),0),(0.2,(1,4,4),1)]if(L:=k[1]if k[2]else(k[1][0]-X*T,k[1][1]-Y*T,k[1][2]-T))!=[]and(S:=X*T-I[0][0])!=[]and(R:=Y*T-I[0][1])!=[]and(Q:=T-I[0][2])!=[]and(E:=Z(S*S+R*R+Q*Q))!=[]and(N:=(S/E,R/E,Q/E))!=[]],0.2)/3.64)]if I else" "for W in range(80)if(H:=1<<32)and(T:=H)and not(I:=None)and(X:=W/80-0.5)!=[]and(Y:=0.5-J/30)!=[]and(j:=min([(M,t)if(a:=2*(X*X+Y*Y+1))!=[]and(b:=2*(-M[0][0]*X-M[0][1]*Y-M[0][2]))!=[]and(A:=b*b-2*a*(sum([x*x for x in M[0]])-M[2]*M[2]))>0 and(U:=(-b-Z(A))/a)!=[]and(V:=(Z(A)-b)/a)!=[]and(t:=min(H if U<0 else U,H if V<0 else V))<T else(I,T)for M in[((0,-1,3),(255,0,0),1),((2,0,4),(0,0,255),1),((-2,0,4),(0,120,0),1),((0,-5001,0),(0,100,0),5000)]],key=lambda t:t[1]))and(I:=j[0])!=[]and(T:=j[1])!=[]]for J in range(30)if(B:=lambda x:x if 0<=x<=255 else 0 if x<0 else 255)])))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment