bones.py

Created by schraf

Created on September 16, 2024

1.01 KB

Animation TikTok


from kandinsky import fill_rect
from time import sleep
from random import randint

f1='/@^@(.?b?\'-@b@&-?d?&-?"^"?&`*?!`!^&?b(` `\'`@ b$b( ^?!_A `@-)C b(1?!^\'.C _&%`%?!? _?&%?a(^?\'%`? a!` ?\')B ?`@(-C*=/`!_&.? a ?&-^@ ?^!?&+`?"?^?\')_@%? ^&(^ ?(?^&(^?)?^&(_?)^&)^?)_%)_)?^%*^?(?^%*_(? ^$+^?(?^$)_ ^(?^$\'_?^?)?^$%^? A)?^%5?^%5^&6_$5?^?_"6A ?^ '
f2='4^\'4_&4^?&4?\'5?&4^?&%^$?`?#_&%_"?b?"^?&%?^"c?"^?&%?#b@!_\'&?%^$^?\'%@"^!^!?!^?\'%^?#_ @!^?(%_$A#?(%?^)^*%@"^? ^ _?*%? ?_A _!^)&A_!^ ^ ^?)-?!^!^(.? _ ?(.?^!^?(0^?**^A `?)(?`? @^?*\'? ?\'?)(?\'^?)\'_?&_?((^?\'^?((_?&_?\')_?&?(*?&^ ?\'+?$_?(*^?$^?))^%^?*0^?*/^?+0?+/^,/`*'
coul=64,173,255
fill_rect(0,0,320,222,(64,)*3)

def aff(f,s):
 p=0
 for i,v in enumerate(f):
  n=ord(v)
  if n<62:c,u=0,n-31
  elif n<93:c,u=1,n-62
  else:c,u=2,n-93
  for _ in range(u):
   x=85+5*(p%30) if s else 230-5*(p%30)
   fill_rect(x,27+5*(p//30),5,5,(coul[c],)*3)
   p+=1

def anim(f):
  s=1
  for _ in range(randint(3,6)):
   aff(f,s)
   sleep(.4)
   s=1-s

while True:
  anim(f1)
  anim(f2)

During your visit to our site, NumWorks needs to install "cookies" or use other technologies to collect data about you in order to:

With the exception of Cookies essential to the operation of the site, NumWorks leaves you the choice: you can accept Cookies for audience measurement by clicking on the "Accept and continue" button, or refuse these Cookies by clicking on the "Continue without accepting" button or by continuing your browsing. You can update your choice at any time by clicking on the link "Manage my cookies" at the bottom of the page. For more information, please consult our <a href="https://www.numworks.com/legal/cookies-policy/">cookies policy</a>.