el=['😀','😁','😂','😃','😄','😅','😆','😇','😈','😉',
'😊','😋','😌','😍','😎','😏','😐','😑','😒','😓',
'😔','😕','😖','😗','😘','😙','😚','😛','😜','😝',
'😞','😟','😠','😡','😢','😣','😥','😦','😧','😨',
'😩','😪','😫','😭','😮','😯','😰','😱','😲','😳',
st1='<p style="color:#aa00ff; font-size:150%;'+\
' padding:0px 0px 0px 70px;">'
st2='$\\mathbb{Emotional \\; Horoscope \\; '+\
'of \\; the \\; Day}$</p>'
pretty_print(html(st1+st2))
var('t,k'); n=randint(16,36)
a,b,c=randint(5,11),randint(12,24),2*randint(3,6)
fy(t,k)=cos(pi*t/n+2*k*pi/c)
fy(t,k)=fy(t,k)+cos(a*pi*t/n+2*k*pi/c)+\
fx(t,k)=sin(pi*t/n+2*k*pi/c)
fx(t,k)=fx(t,k)-sin(a*pi*t/n+2*k*pi/c)+\
for t in range(2*n)] for k in range(2*c)]
EL=[(3*cos(j*pi/12),3*sin(j*pi/12)) for j in [1..24]]
def col(): return (random(),0,random())
EP1=sum([polygon2d(L[i],color=col(),
EP2=sum([text(el[randint(0,len(el)-1)]+' '+str(31-j),EL[j-1],
fontsize=16,color=col()) for j in [7..24]])
EP3=text(el[randint(0,len(el)-1)],(0,0),
fontsize=100,color='#aa00ff')
(EP1+EP2+EP3).show(axes=False,figsize=(6,6))
No comments:
Post a Comment