-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathimage.py
More file actions
35 lines (26 loc) · 1.77 KB
/
image.py
File metadata and controls
35 lines (26 loc) · 1.77 KB
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
######################################################################################################################################################################
# /¯¯¯¯\¯\ /¯¯¯¯\¯\ /¯¯¯¯\¯\ |¯¯|¯| |¯¯|¯| ⌈¯¯¯¯¯¯¯¯¯¯¯¯⌉`⌉ /¯¯¯¯\¯\ /¯¯¯¯\¯\ /¯¯¯¯\¯\ ⌈¯¯¯¯¯¯¯¯¯¯¯¯⌉`⌉ /¯¯¯¯¯¯¯|¯| |¯¯|¯| /¯¯¯¯¯¯|¯| #
# / /\ \ \/ /\ \ \ / /\ \ \ | | | | | | `¯¯¯¯⌉ ⌈¯⌈¯¯`¯` / /\ \ \/ /\ \ \ / /\ \ \ `¯¯¯¯⌉ ⌈¯⌈¯¯`¯` / / /¯¯¯¯`¯` | | | | |¯¯¯¯¯¯ #
# | | | \/ / | | | / /__\ \ \ | ¯¯¯¯` | | | | | | | | \/ / | | | / /__\ \ \ | | | | | | | | | \______\¯\ #
# | | |\ / /| | | / /____\ \ \ | ⌈¯⌈¯¯| | | | | | | | |\ / /| | | / /____\ \ \ | | | \ \ \____._. | | | _____ | | #
# |__|_| \__/_/ |__|_| /__/_/ \__\_\ |__|_| |__|_| ⌊__⌋_⌋ |__|_| \__/_/ |__|_| /__/_/ \__\_\ ⌊__⌋_⌋ \_______|_| |__|_| |______/_/ #
######################################################################################################################################################################
from importable import *
try:
raise BaseException
except:
IMAGE.importable = 1
import pygame
import json
from contact import const
fp = open(const)
pygame.init()
image = json.load(fp)['image']
fp.close()
raw = {}
def init():
for i in image:
raw[list(i.keys())[0]] = pygame.image.load(list(i.values())[0])
def init2():
for i in image:
raw[list(i.keys())[0]] = raw[list(i.keys())[0]].convert_alpha()