Skip to content

Instantly share code, notes, and snippets.

@SamyBencherif
Created October 12, 2021 14:57
Show Gist options
  • Save SamyBencherif/dec1b014cda96102df651fc8eb1e0489 to your computer and use it in GitHub Desktop.
Save SamyBencherif/dec1b014cda96102df651fc8eb1e0489 to your computer and use it in GitHub Desktop.
" ";import os;_=0######
" ";import math; sin=0x0 or \
math.sin; cos=math.cos;######
" ";a=0; b=0;height=24; width=80;###
" ";clear=["clear","cls".strip()][(os).\
name!="posix"]; os.system(clear);s=sin
while 1: #####################################
z = [0 for DONUT in range(4*height*width)]####
screen = [' ' for O in range(height*width)]#####
j=0################## ##################
while j<6.28:###### ####DONUT########
j+=0.07; i=0##### #################
while i<6.28:#### #################
i+=0.02;sinA=sin (a); cosA=cos(a);#
cosB=cos(b);sinB =sin(b);sini=s(###
i);cosi=cos(i);cosj =cos(j);sinj=s(j)###
"";csj2=cosj+2;mess =1/(sini*csj2*sinA+#
sinj*cosA+5);t=sini *csj2*cosA-sinj*sinA
" ";x = int(40+30*0x01*mess*(cosi*csj2*cosB-#
t*sinB));y=int(10+0x001+15*mess*(cosi*##
csj2*sinB +t*cosB));o = int(x+width*##
y);N=int(8*((sinj*sinA-sini*cosj*##
cosA)*cosB-sini*cosj*sinA-#####
sinj*cosA-cosi*cosj*######
sinB))############
if 0<y<height and 0<x<width and z[o] < mess:
z[o]=mess; screen[o]=".,-~:;=!*#$@"[N if N>0 else 0]
os.system(clear);#I#am#making#this#before#breakfast######
for index, char in enumerate(screen):#maybe#I#should#####
if index % width == 0:#have#a#donut#?###################
print()##I#like#cake#donuts#and#crullers#most#of#######
else:#############################################all###
print(char, end='')##hashtag##donut###donut##donut#####
a+=0.04########################donuts####################
b+=0.02####Samie#B.######################################
@SamyBencherif
Copy link
Author

It's actually spelled doughnut

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment