-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathEidolon windowed.py
52 lines (43 loc) · 2.11 KB
/
Eidolon windowed.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
import threading, requests, gratient, random, pygame, string, io
banner = """
▄███▄ ▄█ ██▄ ████▄ █ ████▄ ▄
█▀ ▀ ██ █ █ █ █ █ █ █ █
██▄▄ ██ █ █ █ █ █ █ █ ██ █
█▄ ▄▀ ▐█ █ █ ▀████ ███▄ ▀████ █ █ █
▀███▀ ▐ ███▀ ▀ █ █ █
v e n a x █ ██
"""
print(gratient.purple(banner))
global FREEIMAGEHOST_image_link_valid
FREEIMAGEHOST_image_link_valid = ""
actual_image_link = ""
link_image = False
def FREEIMAGEHOST():
while True:
image_code = "".join(random.choice(string.ascii_uppercase + string.digits + string.ascii_lowercase) for x in range(6))
FREEIMAGEHOST_image_link = f"https://iili.io/{image_code}.png"
FREEIMAGEHOST_image = requests.get(FREEIMAGEHOST_image_link)
if FREEIMAGEHOST_image.status_code == 200:
print(gratient.blue(f" [>] FREEIMAGEHOST : {FREEIMAGEHOST_image_link}"), end = "")
global FREEIMAGEHOST_image_link_valid
FREEIMAGEHOST_image_link_valid = FREEIMAGEHOST_image_link
threading.Thread(target = FREEIMAGEHOST).start(); threading.Thread(target = FREEIMAGEHOST).start(); threading.Thread(target = FREEIMAGEHOST).start()
pygame.init()
screen = pygame.display.set_mode((950, 600))
pygame.display.set_caption("Eidolon")
while True:
screen.fill((0, 0, 0))
if not FREEIMAGEHOST_image_link_valid == "" and not FREEIMAGEHOST_image_link_valid == actual_image_link:
actual_image_link = FREEIMAGEHOST_image_link_valid
try:
link_image = pygame.image.load(io.BytesIO(requests.get(FREEIMAGEHOST_image_link_valid).content))
link_image = pygame.transform.scale(link_image, (950, 600))
except:
pass
if link_image:
screen.blit(link_image, (0, 0))
for event in pygame.event.get():
if event.type == pygame.QUIT:
pygame.quit()
quit()
pygame.display.update()