selfie.py

Created by aidanplews2013

Created on September 17, 2020

5.71 KB


from kandinsky import *

from time import *

#the next line is where you put the list that the pc program spits out

mo=[[0, 0, 0, 340282366920938463463374607363048734719, 340282366920938463463374607088170827775, 340282366920938463463374607088170827775, 340240665642755049580791846598460047359, 297747070894849957695729203093817784255, 340282366920938463458762920726146056183, 340092804945237602885837769609234611711, 255211774556723804351316281448388878207, 338953138920163097084732875910462504951, 340238059957543996053871510538659297279, 254879465338146249831420850415891119551, 340281717883811652681079755224284848127, 338953098355299164247277596860098543615, 318929040702060427421213535077199214463, 334965292678515623289100454177879228415, 339617711046007740390047254280308523007, 255210476798875196781786130641939988479, 319014384328619738769500843423195724663, 337613523760735504663130379558030508031, 340282366287102202736653148644134879231, 340198600410818249511252145595443228599, 244567566625658172751133194529195555839, 340279768196349617991397766100905099263, 338786619708462735516932394937129828223, 318973180613350668184010691780325404635, 334955060022137361338860223013651677183, 339617103885319114096359062359131553279, 340116212153813459544401442286918369279, 329627753316455548027429220576134946807, 337623905856248842856364142753105313791, 340116213421465314585162062079148686335, 297744474728817634295215930174215258103, 328983908669395551979892189418175324159, 340282366919620058605923284900392730367, 340276525507744232255765353837604372447, 319014718988379745205398885796967020535, 340282346633248067641696450906840629247, 255167638092486071505239208068307206143, 340282366604025200051498936545903640319, 337457757427264547957178443617429090303, 340235626088198598256041126100574666735, 255211774556864604676737630250395959295, 338952489729426091535114159624938323455, 340116051162153866302196214114283421695, 340271979791855515811085966130351431647, 295086018905764807346498700577924448255, 340116132288761098494000604671941541887, 340240808262615742101276033946023297023, 316355608886855187929193130339600411647, 170130798857771935078699939835079802239, 206694953255422730685628129709219838527, 293593233559050888831822332713785873391, 310239737296217326022199699321843022359, 338003911692427054223622252401801292099, 297529765238548832760879137480515190489, 340268945031221846020315576829428493478, 339949886707831800406790325770979605452, 329606953868711648283094384041521774258, 337621314364788839727376273909609053144, 340282365652763642147903137470631243766, 297580572334355760568107673024951057148, 329638146940525304080661115667740014586, 338950502110333164360866774799087517436, 340116044823113249964108730999346976254, 340282022078790625961977389654875303867, 244536331322371840005231241425138952943, 337621953666625448762385861945038036991, 340282201412675750965056878048529864431, 340107126896835732708247456986926262271, 297728489417023712087564516693887665495, 329632955920401238092325858936438347135, 337547769396834779205833706404816353967, 340126592943935308196826212331989413759, 340175710180171103636376651442899907243, 339690445078907572436036083333977559231, 318889433192077309255856595007178794967, 338028910084320667077589642202689501567, 338016794725048995237852495026679833259, 330806425154110400601045377193543693247, 330477827211290579110037919764091631573, 301314178997583555408951057068072596223, 319989140094912704554940850977984408437, 335630068935651889295421683955282959103, 272283722027469678399055284915406891999, 220651847300244616095594738072015041263, 4937132373735803329663688575112107359, 200713427363508340988149024360736208309, 42107893309828332071121778050197087743, 82412135738334035266248479563455064821, 159483617465368992926413471651409654463, 297082457057496328830303811629309984605, 340199104449831224429408393093609877239, 244577951219092433653887982434862453421, 338775088947109729448074043800607691947, 340240828446244296802976387598545255933, 339946611107203331693713357309526447851, 296324358060853296168963177881376304245, 329645771051318393142286853258642665815, 252210614160586617605501765642098733653, 329647718889853139290815174466764457685, 295975835195517747677769015169573558613, 326988597674181029596405674554953122341, 126722324064790269558488065265186554997, 338932165240091246163187949391949667482, 286898632935712211466787315103119863159, 253505619212193738605262173473422999682, 297068718275049494215872408957207773535, 329551889919323752142119867368845787214, 311926037339271543610267731201669661396, 124057279756635425804911442057086107649, 283609542068619204780602119885522534654, 326149259435712037830162811912263041120, 141834768875035211719687324325315346493, 339148823647886103274933706544032776256, 326087600973446040211490631059357302802, 283492918213555234654221605742231683074, 316584724287893878133315985036263030786, 282460949146745879791126545455745335368, 253176394908406275523304710715574583494, 277642497645938341581334444371047612416, 315691649014536146891849054891181867052, 138239711582262029766149551335241941088, 10633823966368796978967212624250404864, 0, 0]]




for fap in range (1):#this is was used play back multiple frames of video just ignore it

  tm=monotonic() 

  zy=mo[fap]

  for i in range(128):

    x=('{0:0128b}'.format(zy[i]))

  

    for o in range(128):

      if int(x[o])==0:

        #change the 2s to 1s in the next line to fit the full image on screen

        fill_rect((((128*2)-(o*2))),(i*2)-10,2,2,(0,0,0))

      

      if int(x[o])==1:

        #change the 2s to 1s in the next line to fit the full image on screen

        fill_rect((((128*2)-(o*2))),(i*2)-10,2,2,(255,255,255))

  if monotonic()<(tm+(1/2)):

    sleep((tm+(1/2))-monotonic())

    tm=monotonic()

  tm=monotonic()

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 cookies policy.