prt3.py

Created by aidanplews2013

Created on November 02, 2021

895 Bytes


# Type your text here
from kandinsky import *
from time import *
map=[[0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x3e, 0x10, 0x8, 0x4, 0x3e, 0x0, 0x0, 0x0, 0x22, 0x3e, 0x22, 0x0, 0x0, 0x0, 0x3e, 0x10, 0x8, 0x10, 0x3e, 0x0, 0x0, 0x20, 0x20, 0x20, 0x20, 0x20, 0x0, 0x0, 0x1e, 0x20, 0x20, 0x20, 0x1e, 0x0, 0x0, 0x1c, 0x22, 0x22, 0x22, 0x1c, 0x0, 0x0, 0x2, 0x4, 0x38, 0x4, 0x2, 0x0, 0x0, 0x0, 0x0]]

for fap in range (1):
 
  zy=(map[fap])
  for i in range(100):
    x=('{0:08b}'.format(int(zy[i])))
  
    for o in range(8):
      if int(x[o])==0:
        fill_rect((100-i),(8-o)*1,1,1,(0,0,0))
      
      if int(x[o])==1:
        fill_rect((100-i)*1,(8-o)*1,1,1,(255,255,255))