feat: init repo

This commit is contained in:
Halyul
2021-05-26 02:24:18 -04:00
commit 880d638a8f
34 changed files with 602791 additions and 0 deletions

46
lib/builder.py Normal file
View File

@@ -0,0 +1,46 @@
import threading
from lib.skeleton_binary import SkeletonBinary
from lib.alpha_composite import AlphaComposite
from lib.atlas_reader import AtlasReader
class Builder:
def __init__(self, operator_name, config) -> None:
self.operator_name = operator_name
self.config = config
def start(self):
self.__set_version()
return
def stop(self):
return
def __build_assets(self):
source = "./operator/skadi/extracted/"
target = "./operator/skadi/"
name = "dyn_illust_char_1012_skadi2"
ar = AtlasReader(source + name, target + name)
skeleton_binary = threading.Thread(
target=SkeletonBinary,
args=(source + name, target + name)
)
ar_thread = threading.Thread(
target=ar.get_images,
args=()
)
ar_thread.start()
skeleton_binary.start()
ar_thread.join()
for item in ar.images:
threading.Thread(
target=AlphaComposite,
args=(source + item, target + item)
).start()
return
def __set_version(self):
version = input("Enter build version: ")
print(version)
return